Additional Intro of MP3
SPRING 2020 CS 498RK Jinda Han April 1, 2020
Additional Intro of MP3 Jinda Han April 1, 2020 Getting Started - - PowerPoint PPT Presentation
CS 498RK SPRING 2020 Additional Intro of MP3 Jinda Han April 1, 2020 Getting Started Clone and initial the MP3 git alone https://gitlab.com/uiuc-web-programming/mp3.git mp3 cd mp3 npm install Run MP3 npm start http://localhost:4000/api/
SPRING 2020 CS 498RK Jinda Han April 1, 2020
git alone https://gitlab.com/uiuc-web-programming/mp3.git mp3 cd mp3 npm install
npm start http://localhost:4000/api/ Environment good 👎
A useful Dev tool: “The Collaboration Platform for API Development”
/www.postman.com/
Check API: localhost:4000/api/ Return like this (nothing) because you haven’t implemented your mp!
/www.mongodb.com/cloud/atlas
Wait for a while!
mongodb+srv://test_d4:<password>@cs498rkmp3-jxf1h.mongodb.net/test?retryWrites=true&w=majority What is the password? Username Password
mongodb+srv://test_d4:<password>@cs498rkmp3-jxf1h.mongodb.net/test?retryWrites=true&w=majority
Type your Username, Password, and URL, not mine. mongodb+srv://test_d4:<password>@cs498rkmp3-jxf1h.mongodb.net/test?retryWrites=true&w=majority
Implement an API with the following required endpoints (they would be preceded by something like http:/ /localhost:4000/api/*). Your implementation should use Node, Express and Mongoose.
This is an example, implementation may vary Simple Example, not full code You need to implement POST/ GET/PUT/DELETE
Complete the Schema for User and Task This is an example, implementation may vary
python3 dbFill.py -u "localhost" -p 4000 -n 20 -t 100 cd mp3/database_scripts/
python3 dbClean.py -u "localhost" -p 4000 cd mp3/database_scripts/
localhost:4000/api/tasks
http://localhost:4000/api/tasks?where={"completed": true}
http://localhost:4000/api/tasks?skip=60&limit=20
(Invalid user = nonexistent user) Extra test corner cases worth 30% points, will not release
/developer.mozilla.org/en-US/docs/Learn/Server-side/ Express_Nodejs/mongoose
/expressjs.com/en/starter/basic-routing.html
/mongoosejs.com/docs/api
/docs.mongodb.com/manual/tutorial/query-documents/
/docs.mongodb.com/manual/reference/database- references/
/www.restapitutorial.com/httpstatuscodes.html