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