clone project
git clone git@github.com:cuongtv-smartosc/template-fastapi.git
cd template-fastapi
>= Python 3.10
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
pre-commit install
pre-commit installed at .git/hooks/pre-commit
docker-compose up -d
uvicorn main:app --reload
online doc address
http://127.0.0.1:8010/redoc
Create new database for test and update in config.yml file
DB_DATABASE="db_test"
Run test
pytest