Minimal FastAPI project for beginners.
- Supports caching. Install Redis for redis support.
- Supports IP rate limiting.
- Install PostgreSQL for database support (Username: postgres and Password: postgres).
- Supports Encrypted JWT for login.
- Supports Docker.
ifconfig
ipconfig
Update the value of 'DATABASE_HOST' to docker-compose.yml file.
docker compose up
conda config --set ssl_verify False
conda update conda
conda create -n myenv python=3.10
conda activate myenv
pip install -r requirements.txt
export UVICORN_PORT=7005
set UVICORN_PORT=7005
export DATABASE_HOST=localhost
set DATABASE_HOST=localhost
export ONLINE_ENCRYPTION_KEY=PzU61WFfWSGSY3cc
set ONLINE_ENCRYPTION_KEY=PzU61WFfWSGSY3cc
uvicorn main:app --reload
uvicorn main:app
http://localhost:7005/docs
http://localhost:7005/redoc
alembic revision -m "created tables login, country and profile"
alembic upgrade head
alembic downgrade -1