Question: Install the latest version of NodeJS from nodejs website Run the cmd / terminal command to show your installed version of node Run the cmd
Install the latest version of NodeJS from nodejs website
Run the cmdterminal command to show your installed version of node
Run the cmdterminal command to show your installed version of npm
Take a screenshot of the cmdterminal window showing the result of both commands
Start a new node project
Set the package.json to run test.js when given the test command
Test.js should output some text
Install dayjs to your node project
Locate and explore DayJS documentation to figure out how to display today's date
Update your test.js to display today's date below the text from the last week.
Create a new file called app.js
Update package.json to run app.js on the start command
Install express to the project
Install consign to the project
Set up your folder structure to mimic the bookdemo
Libs
Models
Routes
Create the libsmiddlewaresjs and libsbootjs similar to the bookdemo
Create a route for that returns JSON including a message of "Welcome to course management" and uses dayjs to return the current date
Create a model called courses with a findAll function to return the JSON course information you submitted for Week
Create a route for courses that returns the response of the findAll function for courses
Use consign to include all the files and folders necessary for the API to function into app.jsStart with the project from the previous week
Install SQLite
Download sqlitetoolswinxzip
Create C:sqlite or whichever drive you're using
Extract the zip to this folder
Install the sequelize and SQLite modules via NPM
Refactor the project to utilize sequelize as seen in the demobook including but not limited to:
Creating libsconfigjs
Creating dbjs
Modifying: libsbootjs
Update the existing courses model to be a sequelize model
Create a model for students
Set up N relationship for CoursestoStudents one course will own many students
In reality this should be an NN many to many relationship, but Im trying to keep the assignment as close to the bookdemo as possible
Final output when running npm start and going to localhost:courses should output "courses": i need help with this I dont know what I am doing wrong
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
