-
A regular Fast API project with JWT token based users and their MySQL based posts using SQLAlchemy ORM, Alembic migrations and Pydantic validation. And all this on asynchronous code with aiocache.
-
I have described in detail how to use the APIs of this project in the Postman documentation :
-
Also in the image on my Docker Hub is always the latest version of the code using the GitHub CD :
-
Application Config
-
Test Application and Database
-
Database Config
-
Alembic Config
-
Alembic Ini File
-
Models Structure
-
Schemas Structure
-
Run File
-
APIs
-
Requirements File
-
DockerFile
-
Command for Docker
-
Docker Compose File
-
GitHub CI/CD Actions
- Copy this repository to your system
git clone --branch prod https://github.com/VyacheslavShrot/fast_api_mvc.git
- Create an .env file at the project level
# Config for Database
MYSQL_ROOT_PASSWORD=exam...
MYSQL_DATABASE=exam...
MYSQL_USER=exam...
MYSQL_PASSWORD=exam...
# Config for JWT Token
JWT_SECRET_KEY=exam...
ACCESS_TOKEN_EXPIRE_MINUTES=360
- Run Docker-Compose
docker-compose up -d