Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aybruhm/fastapi-odmantic
FastAPI production-ready template using MongoDB + Odmantic
https://github.com/aybruhm/fastapi-odmantic
docker docker-compose fastapi fastapi-boilerplate fastapi-template mongodb odmantic python
Last synced: 7 days ago
JSON representation
FastAPI production-ready template using MongoDB + Odmantic
- Host: GitHub
- URL: https://github.com/aybruhm/fastapi-odmantic
- Owner: aybruhm
- License: cc0-1.0
- Created: 2023-09-16T09:21:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-23T12:11:28.000Z (about 1 year ago)
- Last Synced: 2024-10-12T07:35:03.472Z (about 1 month ago)
- Topics: docker, docker-compose, fastapi, fastapi-boilerplate, fastapi-template, mongodb, odmantic, python
- Language: Python
- Homepage:
- Size: 69.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI-Odmantic
FastAPI production-ready template using Odmantic (MongoDB).
## Docker
You can start the project with docker using this command:
```bash
make run_dev
```This command exposes the web application on port `2555`, mounts current directory and enables autoreload.
To view the database admin, navigate to: `0.0.0.0:5001`. The name of the database is going to be whatever you have replace `` with.
But you have to rebuild image every time you modify `Pipfile.lock` or `Pipfile` with this command:
```bash
make build_dev
make up_dev
```## Configuration
This application can be configured with environment variables.
Create an `.env` file from the `.env.template` file in the root directory and place all environment variables.