https://github.com/jsonfm/mongo-bookstore
📚 💚 A bookstore API made with MongoDB
https://github.com/jsonfm/mongo-bookstore
fastapi mongodb python
Last synced: about 2 months ago
JSON representation
📚 💚 A bookstore API made with MongoDB
- Host: GitHub
- URL: https://github.com/jsonfm/mongo-bookstore
- Owner: jsonfm
- Created: 2023-10-28T15:02:53.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-29T03:06:53.000Z (over 2 years ago)
- Last Synced: 2025-03-25T13:46:59.768Z (over 1 year ago)
- Topics: fastapi, mongodb, python
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 📚 Bookstore
A simple app made with mongodb and python. It implements simple crud operations across the different data models related to books, authors, reviews, etc.
### ✨ Technologies
- FastAPI
- Mongo
### ⚙️ Setup
1. Create and activate a virtual environment:
```
python -m venv venv
```
2. Install dependencies:
```
pip install -r requirements.txt
```
3. Write the environment variables following `.env.example`:
```
MONGO_URI=""
MONGO_INITDB_ROOT_USERNAME=""
MONGO_INITDB_ROOT_PASSWORD=""
```
### ⚡️ Development
```bash
uvicorn main:app --port 8000 --reload
```
### 🐋 MongoDB
```
docker compose up -d
```