lorenzocesconetto/fastapi-postgresql(opens in a new tab)
Language: Python
FastAPI + Postgres project generator
- stars
- 163
- watchers
- 3
- forks
- 10
- open issues
- 1
- Last updated
- 07/05/2022
Language: Python
FastAPI + Postgres project generator
This repo creates a basic FastAPI backend using cookiecutter.
I've based my work on Tiangolo's cookiecutter project project generator. But Tiangolo's project seems to be unmaintained for two years now. There's some code that I've ported from his project that still looks the same. Despite that, I've made some major changes.
I decided to create my own boilerplate in order to address some issues:
Navigate with your terminal to the path where you'd like to create the new project. Then run cookiecutter:
pip install cookiecutter
cookiecutter https://github.com/lorenzocesconetto/fastapi-postgresql
Provide input as you're prompted by cookiecutter and you're all set!
You can run the project with this single command (of course you need docker installed and the docker daemon must be up and running)
docker-compose -f "docker-compose.dev.yml" up -d --build
You can connect to the database from your terminal running the following command:
./scripts/psql-connect.sh
This is what I see for the next steps of this project, feel free to jump in and open a PR: