Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tayyabmughal676/fastapi_template
Python FastAPI Framework with Mongodb Scaffold Template.
https://github.com/tayyabmughal676/fastapi_template
chatgpt crud-api fastapi fastapi-boilerplate fastapi-crud fastapi-mongodb fastapi-template llms mongodb open-source openai openai-api opensource-projects python
Last synced: 2 months ago
JSON representation
Python FastAPI Framework with Mongodb Scaffold Template.
- Host: GitHub
- URL: https://github.com/tayyabmughal676/fastapi_template
- Owner: tayyabmughal676
- Created: 2022-10-18T10:14:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T19:52:45.000Z (9 months ago)
- Last Synced: 2024-05-21T19:03:49.855Z (9 months ago)
- Topics: chatgpt, crud-api, fastapi, fastapi-boilerplate, fastapi-crud, fastapi-mongodb, fastapi-template, llms, mongodb, open-source, openai, openai-api, opensource-projects, python
- Language: Python
- Homepage: https://www.youtube.com/parholikhocs
- Size: 32.2 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# FastAPI Template with MongoDB
This repository provides a FastAPI template with MongoDB setup using Docker Compose.
## Getting Started
### Prerequisites
Make sure you have Docker and Docker Compose installed on your machine.
- [Docker Installation Guide](https://docs.docker.com/get-docker/)
- [Docker Compose Installation Guide](https://docs.docker.com/compose/install/)### Start the services:
```
docker-compose up -d
```### Verify the services:
```
docker-compose ps
```
### Stopping the Services
```
docker-compose down
```The database will be accessible on ```localhost:27017``` with the specified root username and password.
### Run App
[//]: # (uvicorn app.app:app --reload)
```
fastapi dev
``````
╭────────── FastAPI CLI - Development mode ───────────╮
│ │
│ Serving at: http://127.0.0.1:8000 │
│ │
│ API docs: http://127.0.0.1:8000/docs │
│ │
│ Running in development mode, for production use: │
│ │
│ fastapi run │
│ │
╰─────────────────────────────────────────────────────╯
```### Project Requirements
- Python 3.11
- FastAPI
- Mongodb
- Pydantic
- Pymongo
- Beanie