- Start mongodb
- Run
yarn startThis starts the API
- Create a
dbdirectory in this project. - Change directory to that
cd db - Run command
mongod --dbpath . - This starts the mongodb within the
dbdirectory
- 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