- API Endpoint: https://api.lkwplus.com
- Swagger UI: https://api.lkwplus.com/docs
- Redoc: https://api.lkwplus.com/redoc
git clone [email protected]:synthpop123/fly-fastapi.git
cd fly-fastapi
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
uv pip install -r requirements-dev.txt
# Install pre-commit
pre-commit install
# Test pre-commit function
pre-commit run --all-files
# Dev mode
fastapi dev
# Prod mode
fastapi run
# Launch on fly.io
fly launch
# Deploy on fly.io
fly deploy
Create a repository secret FLY_API_TOKEN
, the value should be the deploy token generated from the fly.io dashboard.
Once git push
is triggered, GitHub Actions will automatically run fly deploy
.