Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanafagal/book-manager-api
A FastAPI-based CRUD application for managing authors, supporting JSON and XML formats, with MongoDB Atlas integration for data storage.
https://github.com/sanafagal/book-manager-api
crud fastapi mongo-atlas pyhton xml
Last synced: 4 days ago
JSON representation
A FastAPI-based CRUD application for managing authors, supporting JSON and XML formats, with MongoDB Atlas integration for data storage.
- Host: GitHub
- URL: https://github.com/sanafagal/book-manager-api
- Owner: SanAfaGal
- Created: 2024-11-09T22:44:41.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2024-11-09T23:12:20.000Z (5 days ago)
- Last Synced: 2024-11-10T00:18:26.479Z (5 days ago)
- Topics: crud, fastapi, mongo-atlas, pyhton, xml
- Language: Python
- Homepage: https://book-manager-api-iiyx.onrender.com
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book Manager API
A FastAPI-based CRUD application designed to manage authors and their books, supporting both JSON and XML formats. The application connects to MongoDB Atlas for storage, providing efficient handling of book data.
## Features
- **CRUD operations** for authors and books
- **Support for JSON and XML formats**
- Integration with **MongoDB Atlas** for data storage## Installation
1. Clone the repository:
```bash
git clone https://github.com/SanAfaGal/book-manager-api.git
```
2. **Create a virtual environment** and install packages:
```bash
pip install -r requirements.txt
```
3. Ensure you have the MongoDB Atlas connection string in the .env file:
```
MONGODB_URI=
MONGODB_DATABASE=
```
4. Run the application:
```bash
uvicorn main:app --reload
```
## Make sure to
- Include your IP address in the IP access list by selecting the Network Access tab.
- Create a user and password to access the database.
- Update the correct username and password in the MONGODB_URI environment variable.## Technologies
- FastAPI
- MongoDB Atlas
- Pydantic
- Python 3.x## Usage and Examples
To view the documentation and test the endpoints, go to the following URL once the project is running:
```
http://127.0.0.1:8000/docs
```