This is PA03 project of our team
Zheng Zheng
Qishi Xing
Zixin Zhang
Nan Wang
Danqiu Fu
Zheng Zheng:
Modify the model to add strTimes field which will contain the list of strings
strTimes: [String],
Modify the '/upsertDB' route so that it sets the course.strTimes field, just as it did for course.num and course.suffix which are the components of course.coursenum
Qishi Xing:
Modify the course.ejs and courselist.ejs, so they use the course.strTimes field
Zixin Zhang:
Modify the '/courses' and '/course' routes so they don't pass times2str into res.locals
Nan Wang:
Add a new form on the index.ejs which asks the user for a keyword and searches for all courses that have that keyword in their course.name. Then create the app.post route which will take that keyword and find those courses and send them to courselist.ejs
Danqiu Fu:
Modify the schedule.ejs so that it uses flexboxes as we did in the api-final branch rather than an ol list, and put in more information into the flexboxes (similar to the course.ejs pages)
Download the project from github and download nodejs and npm from https://nodejs.org and cd into the folder
Install the packages with
npm install
Start the project with
node app.js
or install nodemon (the node monitoring app) with
npm install -g nodemon
and start the project with
nodemon