Due Tue 11/26 midnight (two weeks). Late penalty by Tue 12/3 at class time (after thanksgiving).
This is a continuation of the last assignment. If you didn't finish the last assignment, you'll need work on it here. I'll give you up to 50% credit on that part for finishing it for this one.
In this assignment, you will make your last assignment (schedule builder) connect to a server-side database.
https://classroom.github.com/a/-fgCiVD4
.gitignore
, and server.js
copy your files from the last assignment into the new repo
you can move node-modules
or reinstall with npm i
You must be logged into Blackboard for the videos below to show!
Following the next video example, update your app to retrieve the course, section, and instructor data from the server database.
nodemon server.js
and verify that it operatesserver.js
with a route that serves the list of instructors and the course/section data from the db in json
cors
middleware as shown in the first videodata
state variable and get the retrieve part workingaxios
call to fetch all the data from the server in your App
componentFollowing the next video example, update your app to show "Loading" and "Error" during data retrieval.
To complete this part, update your app to use the retrieved data instead of the hardcoded data. If your route returns the data in the same format as the hardcoded data in the app, it should be straightforward to comment out the latter and switch to use the former.