To install MongoDB on an Ubuntu based system type:
sudo apt install mongodb
sudo systemctl start mongodb
sudo systemctl enable mongodb
- Change directories to the labs/admin-interface/initialize
cd ~/labs/admin-interface/initialize
- Install the dependencies for the database initialize script
npm install
- Run the initialize script
Note: that you will need to press Ctrl-C to exit the initialize script
node initialize.js
- Open a ssh terminal to your NUC
- Clone this project with command: git clone https://github.com/SSG-DRD-IOT/admin-interface
- On the command prompt run the following commands
cd admin-interface
npm install
- Go to app folder and run
npm install -g bower
bower install
You can select Answer '1' in all the options - Once all bower dependencies are installed, come back to admin-interface folder and type:
node server.js
- Your http server is now running and listening on port 5000
- Go to your browser and type: http://gateway-IP:5000