longniao / fastapi-mongo

Template for building FastAPI applications with MongoDB.

Home Page:https://fastapi-mongo.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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

Template for building FastAPI applications with MongoDB.

https://fastapi-mongo.herokuapp.com/

License:MIT License


Languages

Language:Python 98.0%Language:Dockerfile 2.0%