API Design Using express and mongodb Steps to run the application Start mongodb Run yarn start This starts the API Running mongodb local to this project 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 Misc commands 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