Skip to content
/ fastapi-mongo Public template
forked from Youngestdev/fastapi-mongo

Template for building FastAPI applications with MongoDB.

License

Notifications You must be signed in to change notification settings

manhkv/fastapi-mongo

 
 

Repository files navigation

FastAPI and MongoDB Boilerplate

A simple starter for building RESTful APIs with FastAPI and MongoDB.

Features

  • Python FastAPI backend.
  • MongoDB database.
  • Authentication
  • Deployment

Using the applicaiton

To use the application, follow the outlined steps:

  1. Clone this repository and create a virtual environment in it:
$ python3 -m venv venv
  1. Install the modules listed in the requirements.txt file:
(venv)$ pip3 install -r requirements.txt
  1. You also need to start your mongodb instance either locally or on Docker as well as create a .env file. See the .env.sample for configurations.

  2. Start the application:

python main.py

The starter listens on port 8000 on address 0.0.0.0.

FastAPI-MongoDB starter

Deployment

This application can be deployed on any PaaS such as Heroku or Okteto and any other cloud service provider.

Contributing ?

Fork the repo, make changes and send a PR. We'll review it together!

License

This project is licensed under the terms of MIT license.

About

Template for building FastAPI applications with MongoDB.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • Dockerfile 1.8%
  • Procfile 0.6%