This repository of is a group work of Group 4 for Assignment 2 of COMP5437 from the University of Sydney.
Coded by the following three members:
- Chenghao Li : The controllers and the majority of front-end JS.
- Zidong Li: The views of front-end design and the JS of charts and other interactions.
- Limou Zhou: The models including all database query methods.
Be noticed that the credit of this proejct belongs to all three team members.
npm install
There may be one package missing in the package.json, please add it yourself.
start_db_server.bat
Mac:
brew services start mongodb-community@4.2
Windows:
mongod -dbpath <"your specified location">
import_revisions.bat
Mac:
cd ./public/data/Dataset_22_March_2020/revisions
for filename in *
do
mongoimport --jsonArray --db Assignment --collection revisions --file $filename
done
Windows:
cd ./public/data/Dataset_22_March_2020/revisions
@echo off
for %%f in (*.json) do (
"mongoimport.exe" --jsonArray --db Assignment --collection revision --file %%~nf.json
)