{"repo":"Donnype/fastapi-template","free":true,"listed":false,"github":"https://github.com/Donnype/fastapi-template","clone":"git clone https://github.com/Donnype/fastapi-template.git","description":"A FastAPI and SQLAlchemy project template with Docker and GitHub Actions.","language":"Python","stars":129,"topics":["fastapi","fastapi-boilerplate","fastapi-sqlalchemy","fastapi-template","makefile","python"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Fastapi Project Template A FastAPI project template using Make, Docker Compose and Github Actions, that includes SQLAlchemy , Alembic and an integration test setup. Installation The only requirements to develop are Docker and Make . Docker makes it easy to get started and enables easier switching between projects, operating systems and machines. To start up the project locally you first clone the project, and then run the following command in the cloned directory: Then to update the schema using alembic, in another shell: That's it . The app is set up and should be running at localhost:5000/docs. Code changes are automatically detected using a mounted docker volume. Makefile --- The Makefile is the 'entrypoint' for the tools in this structure, such that you can easily run different commands without remembering the exact arguments. Run make help to get an overview of the available commands: Make allows you to collect common scripts and commands for the project. Other projects using different programming languages and frameworks get the same development interface by using Make. --- Installation without Docker To install a local copy of the python environment (to get code-completion for example), you must have Poetry installed. Create a poetry environment by running poetry install at the root of the project. To start up the server in the poetry environment and talk to a test sqlite database in ./test.db , run Again, the app should be all set up and running at localhost:5000/docs","default_branch":null,"files":null,"tree":[],"storefront":"/r/Donnype","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Donnype/fastapi-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}