#install dashboard
Install with Homebrew
brew install mongodb
Install with NVM (recommended by nodejs-project)
or
Install with Homebrew
$ brew install node
cd /projectfolder
npm install
Don't forget to set the right ip in your code for huzzah/other devices which will connect to mqtt server!!
runs project without starting the server daemon. for changing html, css
npm test
npm start
- To stop the server open a shell and type
mongo
use admin
db.shutdownServer()
- Leave the process with ctrl-c
- To stop the process type:
pkill mongo
Start MongoDB Server in other folder:
mongod --dbpath=/databasefolder --port 27017
To create a capped Collection
db.createCollection(„collectionname“,{capped:true,size:10000,max:1000})
Get fast to folder
cd /folder
Set a static IP for connecting to mqtt server: Example: 192.168.178.32