This example assumes you have RGB folder in ~/Desktop/10%/
Start Mongo:
-
Follow instructions in http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ to download mongo.
-
Navigate to /bin of wherever you installed Mongo and type "mongod --dbpath ~/Desktop/10%/RGB/highscores/data/". This will start mongo and tell it where to keep all the files for the database.
-
Run 'mongo' in same directory. 'show dbs' to list all databases. We called ours 'highscores', so type 'use highscores'.
Start node:
- Navigate to ~/Desktop/10%/RGB/highscores/highscore/ and type npm start.
Open up localhost:3000 in a browser.