FastAPI Backend template, with:
- AWS S3 integration
- Image Upload
- JWT Authentication
- Alembic for migrations
- Pydantic for models
- Tests with Pytest
- User
- Post
- PostCategory
- Poetry (https://python-poetry.org/docs/#installation)
- Docker (https://www.docker.com/get-started/)
- Docker Compose (https://docs.docker.com/compose/install/)
- Make (https://www.gnu.org/software/make/)
- Clone the repository
- Set poetry environment in folder
poetry config virtualenvs.in-project true - Run
make installto install dependencies - Run
make db-upto start the database - Run
make startto run server for the first time and run migrations - (Optionally) Run
make db-seedto run seed and fill database with fake data
- Run
make startto run server - Access (http://localhost:8000/docs) to see the documentation
- To run tests run
make test