Repository files navigation
npm install
npm run build
npm start
Create an express server that will listen on port 3003
Give it some middleware
Create a get route to return all restaurants
Create a get route to return a specific restaurant
Test via Postman
Create a post route to add a restaurant
Create a delete route to remove a restaurant
Test via Postman
Serve your client to the port you're listening on using your express server
Create a function on your client that will make a get request to your server to get all restaurants
Create a function on your client that will make a post request to your server to add a restaurant
Create a function on your client that will make a delete request to your server to delete a restaurant
EXTRA CREDIT
Refactor your server to connect to your database instead of using the data from restaurants.json
Add an update route
Add an additional endpoint to your server
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.