Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 739 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 739 Bytes

API Design

Using express and mongodb

Steps to run the application

  1. Start mongodb
  2. Run yarn start This starts the API

Running mongodb local to this project

  1. Create a db directory in this project.
  2. Change directory to that cd db
  3. Run command mongod --dbpath .
  4. This starts the mongodb within the db directory

Misc commands

  1. Check if mongo is running ps aux | grep -v grep | grep mongod
  2. Install mongodb community version using brew i.e brew install mongodb-community
  3. Stop mongodb community version if started globally brew services stop mongodb-community
  4. Start mongodb community version brew services start mongodb-community