The commands in this documentation can be customized on the Makefile. It can be started with and without docker.
This project uses poetry, if you don't have it installed, you can the follow the instruction in Poetry Documentation.
- Run the server (Recommended using docker):
# Run locally with docker in dev mode and force build
make run-dev-build
# or
# Run locally with docker in dev mode
make run-dev
# or
# Run locally with docker in prod mode (Autorelod disabled)
make run-prod
Open http://fastapi.localhost/docs with your browser to see the result.
- Run the server without docker:
First, make sure you have all packages installed:
make install
make run-app
Open http://localhost:8000/docs with your browser to see the result.
By default, the server uses port 8000. However, if this port is already in use, the server will automatically increment and select the next available port, ensuring the application remains accessible.
You can start editing the server by modifying src/app/main.py
.
- fastapi-alembic-sqlmodel-async.
- full-stack-fastapi-postgresql.
- sqlmodel-tutorial.
- asyncer-tutorial.
- fastapi-pagination.
- fastapi-best-practices.
- awesome-fastapi.
株式会社deleでは「デジタルを多くの人の手元へ」というミッション実現のため、汎用的なソースコード等をMITライセンスでPublicに公開しております。
ぜひご活用ください。
また、株式会社deleではデプロイや開発のご依頼も受け付けております。お気軽にお問合せください。