1.0
-
Install NodeJS (>v4)
-
Install MongoDB in root directory of C: drive (eg. C:\mongodb)
-
Setup MongoDB
- Open cmd prompt as admin and change directory to C:\mongodb\bin
- Create two folder in that directory: "data" (i.e. C:\mongodb\data) and "log" (i.e. C:\mongodb\log)
- Create one folder in the "data" folder that is just created: "db" (i.e. C:\mongodb\data\db)
- In C:\mongodb\bin directory run the following two command to setup MongoDB: "mongod --directoryperb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongo.log --logappend --rest --install" "net start MongoDB"
- Copy the "hotspotData.json" file from root of current Git repository to C:\mongodb\bin and run following command to populate database: "mongoimport --jsonArray --db studygowhere --collection hotspots < hotspotFile.json"
- Enable Text search by running command in Mongo shell: db.hotspots.createIndex({ name: 'text', description: 'text', address: 'text'})
-
Download/clone git repository and navigate to root of downloaded Git repository
-
Run "npm install" command to install dependencies
Navigate to repository folder and run following command: node app.js (crtl-c to quit)