Complete and test all CRUD operations for your model (or the Jobs
model). Be sure that each operation uses the ID of the user, so that you have good access control.
Test each step with Postman, creating a Postman collection of tests just like the instructor is doing.
You deploy your application once you have your assignment completed and working, and once you have pushed your week10
branch to Github.
To deploy to Render.com, follow these steps:
.node-version
file in the root of your project repository, specifying the same version of node as you are running on your machine. On my machine, when I type node -v
, I get back v16.19.0 . So I would create a .node-version
file with the single line: 16.19.0
jobs-api-<your name>
.week10
.https://jobs-api-<your name>.onrender.com
.The section of the video from 9:34:30 to the end discusses setting up a Swagger configuration. When you have an API, you need to document it so that implementers of applications that call the API (like the frontend) know what the available endpoints and operations are. Swagger is the best way to do that. It also creates a graphical user interface so that one can call the APIs directly from the UI. You should watch this section so that you understand how a Swagger configuration may be created and what functions it provides. However, this section of the video gets a bit complicated, so you are not required to implement Swagger for your application, but it’s a great idea to watch this section and familiarize yourself with the concept of Swagger. If possible, try to implement it as a bonus task this week.