A simple and efficient FastAPI-based user management system with authentication and role-based access.
- User Authentication: Register, login, and JWT-based authentication.
- Role-based Access Control: Manage users with roles, e.g., superuser.
- SQLite Database: Uses SQLite (async) for user data storage.
- FastAPI: High-performance web framework for APIs.
- FastAPI: Web framework for building APIs.
- SQLAlchemy: ORM for interacting with the database.
- FastAPI-Users: Pre-built user management for FastAPI.
- SQLite: Lightweight database for local development.
git clone https://github.com/your-username/fastapi-user-management.git
cd fastapi-user-management
python3 -m venv .venv
source .venv/bin/activate # On Windows, use '.venv\Scripts\activate'
pip install -r requirements.txt
Start the FastAPI server:
uvicorn app.main:app --reload
Access the app at http://127.0.0.1:8002.
You can view the interactive documentation at:
- Fork the repository.
- Create a new branch for your feature.
- Commit your changes.
- Push to your fork.
- Open a pull request to the main repository.
This project is licensed under the MIT License.

