CTGS is a course project for SEG3102, built using Nodejs, Express.js, MongoDB ang jQuery. Usage of all packages/libraries will be listed in the "Frameworks" section below.
-
cd to current dir
$ cd /path/to/current/dir/mongo
-
install dependencies:
$ npm install
-
Start mongodb
$ sudo mongod --dbpath /path/to/current/dir/mongo
exmaple:
$ sudo mongod --dbpath /Users/jerryzhang/Google\ Drive/Study/2016-4-Fall/SEG3102A/Proj/3102/mongo
-
import json document as data
$ mongoimport --host 127.0.0.1 --port 27017 [dbName] --collection [collectionName] --file [inputFile]
exmaple:
$ mongoimport --host 127.0.0.1 --port 27017 --db test --collection user --file /Users/jerryzhang/Google\ Drive/Study/2016-4-Fall/SEG3102A/3102/mongo/user.json
-
Start server
npm start
-
Save db
$ mongoexport --host 127.0.0.1 --port 27017 --db [dbName] --collection [collectionName] --out [outputFile]
exmaple:
$ mongoexport --host 127.0.0.1 --port 27017 --db test --collection user --out /Users/jerryzhang/Google\ Drive/Study/2016-4-Fall/SEG3102A/3102/mongo/user.json
-
Shut the server down
ctrl+c
- See package.json
- Rui Liu - Front-end Development & Intergration
- Gin Kwan - Front-end Development & UI designing
- Fengwei Zhang - Backend Development & Database Management
MIT, see LICENSE.txt. Except for academic use, which is completely prohibited.