CUshare is a resource sharing platform within the Chinese University of Hong Kong.
- Node.js v8.11.1
- MongoDB v3.6
- Install package dependencies:
npm install
ornpm i
- Open MongoDB server:
mongod
- Import sample data:
./import.sh
- Start the server:
npm test
when in development,npm start
when in deployment - Check the website in your browser: http://localhost:3000/
./app.js: the script to turn on the whole website
./import.sh: the script to import sample data to the database
./common: store some common used files
./common/dbHelper.js: helper program for the usage of the database
./common/models.js: set up the attributes of some modules
./routes: store the route files
./views: store the html template files, ejs files
./public: store static resources, like css, javascript and images
./waste: stores obsolete files