Installing STePS Networking Module and Development
Runs on Windows 10 and above
Prerequisite
- Node v6.3.0 and above (https://nodejs.org/en/)
- MongoDB (https://www.mongodb.com/)
- NPM file manager (usually comes with node)
First Installation
- Clone the repository from Github (git@github.com:nus-mtp/steps-networking-module.git)
- Run
npm installat the root of the repository - Run
gulpfrom the command line - Access the web application with the port displayed on the command line e.g. localhost:3000 when the port displayed is Port 3000.
Development
Ensure that you have set path environment for ease of running MongoDB (https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10)
- Run MongoDB with
mongodin the console - Run Mongo Client with
mongoin the console - Run
gulpfrom the root directory in the command line
Building
-
gulp buildClientto build client side code -
gulp buildServerto build server side code -
gulpbuilds both client and server code -
gulp full-convertto populate database with all STePS past data -
gulp active-convertto populate database with all STePS active data