Back to Browse

W03 Project 2 Part 1

21 views
Premiered Oct 1, 2023
2:38

Complete the following to get started: Create a new Node.js project. You'll use the same MongoDB cluster/account, but you should create a new database for this project. (When you connect to MongoDB Compass, you connect to your account, and your list of databases shows up in the bottom left corner.) Create your first REST API routes (similar to what we did with the routes and controllers folders in your previous, Contacts project). You will need both GET and POST requests for this assignment. Add Documentation and Publish your API Complete the following: Create API documentation for these two routes and test them. Create a new Render project. Be sure to create an env file for your local MongoDB credentials, and add config vars to your Render project. Your MongoDB credentials should never get pushed to git, so be sure to include your env file in your gitignore. Add Update and Delete Functionality and Validation Complete the following: Add PUT and DELETE routes to your API. Verify in MongoDB that these work as intended. Add validation to your routes. Add error handling to your routes. Be sure to update your API documentation to include all of your routes.

Download

0 formats

No download links available.

W03 Project 2 Part 1 | NatokHD