Skip to content

An express review that uses Axios for requests from the client.

Notifications You must be signed in to change notification settings

JenniferHaren/hrla29-node-express-review

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-express-review

#Start Server
npm install
npm run build
npm start

#Exercise-1
In mysql shell, create a database todo_list if it doesn't exist. In server/index.js begin setting up your express server and connect to your database. Add a start script to your package.json that will run the server.

#Exercise-2
Build out the GET, POST, and DELETE functions in server/index.js.

#Exercise-3
Inside your express-server folder, create a file called "routes.js" and a file called "controller.js". In your index.js file, make it so that requests coming in to the endpoint "/api" are routed to your express router. Inside your router file, route those requests to your controller. Inside your controller, build functionality to check (console.log) that each endpoint is being hit.

#Exercise-4
Build out the functionality of the component such that it can handle GET, POST, and DELETE requests

About

An express review that uses Axios for requests from the client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published