- FastAPI(https://fastapi.tiangolo.com/)
- Implement simple endpoints and test
- OpenAPI3.0 - auto generated
- setup.sh for setting vitual env
run the script with
source setup.sh
- logging configuration
- Simple unit test
- Apply formatter(black) and linter(flake8) with pre-commit
- Change project name and remove .git
source setup.sh
git init
git checkout [your branch]
- Change app/routers/router.py to your business endpoint such as user.py
- Change test/test_query.py to your test_case.py
- Implement your code
- Create pre-commit hook by running
pre-commit install
pytest test
pre-commit run --all-files
git add .
git commit -m "init commit"
git push origin [your branch]
Now you have your project repository.