Skip to content

DavidKimDY/Mongodb-with-FastAPI

Repository files navigation

FastAPI + MongoDB

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

Features

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

How To Use

Clone this repository and make a virtual environment in it. Install the modules listed in the requirements.txt file:

pip3 install -r requirements.txt

To run the starter:

First, set your PYTHONPATH:

export PYTHONPATH=$PWD

Next:

python app/main.py

You also need to start your mongodb instance.

The starter listens on port 8000 on address 0.0.0.0.

FastAPI-MongoDB starter

Deployment

Develop on Okteto

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published