← cd ../projects
Murojaatlar tizimi
Ishlab chiqilmoqdaFastAPIPythonPostgreSQLSQLAlchemyAlembicReactaiogram
Hokimlik uchun fuqarolar murojaatlarini qabul qilish va kuzatish tizimi. FastAPI backend, PostgreSQL bazasi va Alembic migratsiyalari; boshqaruv paneli React'da, murojaat qabul qilish uchun Telegram bot (aiogram) ham bor.
Kodni ko'rish — GitHub →Loyiha jurnali
8-avgust 2026
Loyiha haqidaThis project combines:
• backend/: FastAPI API with PostgreSQL and Alembic
• bot/: Telegram bot built with aiogram 3.x in webhook mode
• frontend/: React + Vite + Tailwind admin panel for the hokim/administrator
• nginx: reverse proxy for API, frontend traffic, and Telegram webhook traffic
Portable and server-friendly run path is Docker:
1. Copy backend/.env.example to backend/.env.
2. Put your Telegram bot token into BOTTOKEN.
3. For local run, keep WEBHOOKURL= empty.
4. For server run, set WEBHOOKURL=https://your-domain.com/api/bot/webhook.
5. Create the first admin password hash:
6. Put the generated hash into backend/.env as ADMINPASSWORDHASH.
7. Start the stack:
8. Open http://localhost locally, or your server domain in production.
9. Public traffic should go only through nginx; backend/frontend/bot stay internal to Docker.
• backend/.env: main config for backend, bot, and Docker Compose.
• bot/.env: optional local override only for bot-to-backend URL in polling mode.
• .env.example: reference template kept in repo root for convenience.
Important variables in backend/.env:Telegram'da ulashish
Izohlar
izoh yozish uchun ismingizni kiritasiz
Hali izoh yo'q — birinchi bo'lib fikringizni yozing.