- Install Node.js
- Install MongoDB
- Install Small IOT Test & Verify Tool UI application
-
Visit node.js homepage
-
Download & install
-
Windows : Download Windows Installer (.msi) and double click it.
-
Linux : Follow instructions on
-
-
Visit MongoDB homepage
-
Download MongoDB Community Server
-
Windows : Download Windows installer and double click it. https://www.mongodb.com/download-center?jmp=nav#community
-
Linux : Follow instructions on https://docs.mongodb.com/manual/administration/install-on-linux
-
Start MongoDB
sudo service mongod start
-
Create admin user ({{mongo-admin}} / {{monog-admin-password}})
mongo --port 27017
use admin db.createUser( { user: "{{mongo-admin}}", pwd: "{{mongo-admin-password}}", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } )
-
Authorization config
vi /etc/mongod.conf
systemLog: destination: file path: /usr/local/var/log/mongodb/mongo.log logAppend: true storage: dbPath: /usr/local/var/mongodb net: #bindIp: 127.0.0.1 bindIp: 0.0.0.0 security: authorization: "enabled"
-
Restart
sudo service mongod restart
-
Create user (iotvtool-user / keti12#$ )
mongo --port 27017 -u "{{mongo-admin}}" -p "{{mongo-admin-password}}" --authenticationDatabase "admin"
use iotvtool db.createUser( { user: "iotvtool-user", pwd: "keti12#$", roles: [ { role: "readWrite", db: "iotvtool" } , { role: "dbAdmin", db: "iotvtool" } ] } )
-
-
Clone source code from github and install libraries.
git clone https://xxx.com/iot-vtool.git cd iot-vtool npm install cd _public bower install
-
Start application
npm start