Lean Backend

Built with Fastapi & MongoDB

To run mongodb locally

Recommended (Use docker to setup mongodb locally)

  MacOS: Follow this guide, link

  Windows: Follow this guide, link

If docker is not installed,

  MacOS: Follow this guide, link

  Windows: Follow this guide, link

  After installing mongoDB, create a .env in lean-backend root directory and follow the format in .env.example

  Change the MONGO_URI=mongodb://(username):(password)@localhost:(port)/?retryWrites=true

  Use MongoDB Compass Client to access MongoDB with a GUI, link

  Connect to MongoDB using the MONGO_URI above and create a db, note down the db name you input

  Change the DB_NAME in .env to the db name of db you created.

To start fastapi server

Recommended (Use pipenv to manage python dependencies)

  git clone git@github.com:zihaolam/lean-backend.git

  cd lean-backend

  pip install --user pipenv

  pipenv install

  pipenv shell

  yarn dev