- Start mongodb
- Run
yarn start
This starts the API
- Create a
db
directory in this project. - Change directory to that
cd db
- Run command
mongod --dbpath .
- This starts the mongodb within the
db
directory
- Check if mongo is running
ps aux | grep -v grep | grep mongod
- Install mongodb community version using brew i.e
brew install mongodb-community
- Stop mongodb community version if started globally
brew services stop mongodb-community
- Start mongodb community version
brew services start mongodb-community