A complete authentication and user-management system built with FastAPI, SQLite, and JWT authentication, featuring an industry-grade UI.
- Login with JWT
- Role-based access (
admin,user) - Secure password hashing (bcrypt)
- View all users
- Add new users
- Change user role (inline dropdown)
- Delete users
- Admin-only protected APIs
- Login & access user dashboard
- Restricted admin routes
- Professional UI (Login, Admin, Records, User)
- Add user via UI
- Edit role inline
- Delete user with confirmation
- SQLite (
auth.db) - Real-time updates visible in DB Browser
A complete authentication and user-management system built with FastAPI, SQLite, and JWT authentication, featuring an industry-grade UI.
- Login with JWT
- Role-based access (
admin,user) - Secure password hashing (bcrypt)
- View all users
- Add new users
- Change user role (inline dropdown)
- Delete users
- Admin-only protected APIs
- Login & access user dashboard
- Restricted admin routes
- Professional UI (Login, Admin, Records, User)
- Add user via UI
- Edit role inline
- Delete user with confirmation
- SQLite (
auth.db) - Real-time updates visible in DB Browser
auth_api/ │ ├── main.py ├── auth.db ├── requirements.txt ├── README.md │ ├── database/ │ ├── db.py │ └── models.py │ ├── models/ │ └── user_models.py │ ├── services/ │ └── user_service.py │ ├── routes/ │ └── auth_routes.py │ ├── utils/ │ ├── jwt.py │ └── password.py │ ├── static/ │ ├── login.html │ ├── admin.html │ ├── records.html │ ├── user.html │ ├── forget_password.html │ └── reset_password.html │ └── test_api.py (optional)
.venv\Scripts\activate
### 2️⃣ Start Server
uvicorn main:app --reload
### 3️⃣ Open Browser
http://127.0.0.1:8000