|
1 | | -# fastapi-mongodb |
| 1 | +<div align="center"> |
| 2 | + |
| 3 | +# FastAPI MongoDB <!-- omit in toc --> |
| 4 | + |
| 5 | +[![Contributors][contributors-shield]][contributors-url] |
| 6 | +[![Forks][forks-shield]][forks-url] |
| 7 | +[![Stargazers][stars-shield]][stars-url] |
| 8 | +[![Issues][issues-shield]][issues-url] |
| 9 | +[![License][license-shield]][license-url] |
| 10 | + |
| 11 | +[![fastapi-mongodb][fastapi-mongodb-badge]][fastapi-mongodb-url] |
| 12 | + |
| 13 | +[Wiki](https://github.com/CarlosAndreo/fastapi-mongodb/wiki) |
| 14 | + |
| 15 | +</div> |
| 16 | + |
| 17 | +## :brain: About |
| 18 | + |
| 19 | +This is a ready-to-use project template for building FastAPI applications with MongoDB as the database. It's designed to help you get started quickly with a clean architecture, pre-configured settings, and best practices for scalability and maintainability. |
| 20 | + |
| 21 | +## Features |
| 22 | + |
| 23 | +- JWT-based authentication. |
| 24 | + |
| 25 | +## Roadmap |
| 26 | + |
| 27 | +- Email verification. |
| 28 | +- Handler exceptions. |
| 29 | + |
| 30 | +## :hammer_and_wrench: Stack |
| 31 | +- [![Python][python-badge]][python-url] - Programming language. |
| 32 | +- [![FastAPI][fastapi-badge]][fastapi-url] - Python framework for web applications to expose the API. |
| 33 | +- [![MongoDB][mongodb-badge]][mongodb-url] - NoSQL database designed to store trial networks. |
| 34 | + |
| 35 | +## :rocket: Getting Started Locally |
| 36 | + |
| 37 | +Install Docker following the instructions for your operating system: |
| 38 | + |
| 39 | +- [Windows](https://docs.docker.com/desktop/setup/install/windows-install/) |
| 40 | + |
| 41 | +- [Ubuntu](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository) |
| 42 | + |
| 43 | +- [MacOS](https://docs.docker.com/desktop/install/mac-install/) |
| 44 | + |
| 45 | +Clone the repository: |
| 46 | + |
| 47 | +```bash |
| 48 | +git clone https://github.com/CarlosAndreo/fastapi-mongodb.git |
| 49 | +cd fastapi-mongodb |
| 50 | +``` |
| 51 | + |
| 52 | +Build the Docker image: |
| 53 | + |
| 54 | +```bash |
| 55 | +docker compose build |
| 56 | +``` |
| 57 | + |
| 58 | +Run the Docker container: |
| 59 | + |
| 60 | +```bash |
| 61 | +docker compose up -d |
| 62 | +``` |
| 63 | + |
| 64 | +The application will be available at `http://localhost:8000`. |
| 65 | + |
| 66 | +The mongo-express UI will be available at `http://localhost:8081`. |
| 67 | + |
| 68 | +## Contributors <!-- omit in toc --> |
| 69 | + |
| 70 | +<a href="https://github.com/CarlosAndreo/fastapi-mongodb/graphs/contributors"> |
| 71 | + <img src="https://contrib.rocks/image?repo=CarlosAndreo/fastapi-mongodb" /> |
| 72 | +</a> |
| 73 | + |
| 74 | +[fastapi-mongodb-badge]: https://img.shields.io/github/v/release/CarlosAndreo/fastapi-mongodb?label=fastapi-mongodb&color=blue |
| 75 | +[fastapi-mongodb-url]: https://github.com/CarlosAndreo/fastapi-mongodb/releases/latest |
| 76 | +[contributors-shield]: https://img.shields.io/github/contributors/CarlosAndreo/fastapi-mongodb.svg?style=for-the-badge |
| 77 | +[contributors-url]: https://github.com/CarlosAndreo/fastapi-mongodb/graphs/contributors |
| 78 | +[forks-shield]: https://img.shields.io/github/forks/CarlosAndreo/fastapi-mongodb.svg?style=for-the-badge |
| 79 | +[forks-url]: https://github.com/CarlosAndreo/fastapi-mongodb/network/members |
| 80 | +[stars-shield]: https://img.shields.io/github/stars/CarlosAndreo/fastapi-mongodb.svg?style=for-the-badge |
| 81 | +[stars-url]: https://github.com/CarlosAndreo/fastapi-mongodb/stargazers |
| 82 | +[issues-shield]: https://img.shields.io/github/issues/CarlosAndreo/fastapi-mongodb.svg?style=for-the-badge |
| 83 | +[issues-url]: https://github.com/CarlosAndreo/fastapi-mongodb/issues |
| 84 | +[license-shield]: https://img.shields.io/github/license/CarlosAndreo/fastapi-mongodb.svg?style=for-the-badge |
| 85 | +[license-url]: https://github.com/CarlosAndreo/fastapi-mongodb/blob/main/LICENSE |
| 86 | +[python-badge]: https://img.shields.io/badge/Python-3.13.3-blue?style=for-the-badge&logo=python&logoColor=white&labelColor=3776AB |
| 87 | +[python-url]: https://www.python.org/downloads/release/python-3133/ |
| 88 | +[fastapi-badge]: https://img.shields.io/badge/FastAPI-0.115.12-blue?style=for-the-badge&logo=fastapi&logoColor=white&labelColor=009688 |
| 89 | +[fastapi-url]: https://fastapi.tiangolo.com/ |
| 90 | +[mongodb-badge]: https://img.shields.io/badge/MongoDB-8.0-green?style=for-the-badge&logo=mongodb&logoColor=white&labelColor=47A248 |
| 91 | +[mongodb-url]: https://www.mongodb.com/ |
0 commit comments