how to setup a local mongodb server code example
Example 1: mongodb start server
sudo systemctl start mongodb
Example 2: setup mongoose locally
mongoose.connect('mongodb://username:password@host:port/database?options...', {useNewUrlParser: true});