A modern full-stack web application built with β€οΈ for managing users, roles, questions, and authentication. Features a responsive React frontend and a powerful FastAPI backend.
-
β Authentication & Authorization
- JWT-based system
- Roles:
admin&user - Secure login/logout/register flow
-
π€ User Dashboard
- Edit profile
- View orders, items, and history
-
π οΈ Admin Panel
- Manage users and entities
- View detailed dashboards
| Layer | Tech Used |
|---|---|
| Frontend | React + Vite, React Router, Redux Toolkit, TailwindCSS, Axios |
| Backend | FastAPI, SQLAlchemy, Alembic, PostgreSQL, Pydantic, JWT |
| DevOps | Docker, Docker-Compose, .env configs |
git clone git@github.com:serejekee/drivers_licence_free.git
cd fullstack-appRequires: Docker + Docker Compose installed
docker-compose up --build# Apply migrations
docker-compose exec backend alembic upgrade head
# Create admin user
docker-compose exec backend python create_admin.py| Part | URL |
|---|---|
| Frontend | http://localhost:5173 |
| API Docs | http://localhost:8000/docs |
| Admin Login | http://localhost:5173/admin |
Default Admin Credentials:
π€ Username: admin
π Password: admin
Create a .env file inside the backend/ folder:
DATABASE_URL=postgresql://postgres:postgres@db:5432/drive
JWT_SECRET_KEY=your-super-secret-jwt-key-change-this-in-production
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=60
DEBUG=True
Run tests for the backend:
cd backend
pytestUse
.env.exampleas a starting point for new environments or contributors.

