If the code on the left is the project starter “as-is”, then it’s behaving as intended.
### Server Boilerplate
In **server.js**, you will see some boilerplate code, but the server is missing key functionality to allow it to run. You must:
- Set up body-parsing middleware with the `body-parser` packagae.
- Set up CORS middleware with the `cors` package. You can use the default settings.
- Mount the existing `apiRouter` at `/api`. This router will serve as the starting point for all your API routes.
>>> - Start the server listening on the provided `PORT`. Make sure to use the `PORT` constant and not a hard-coded number, as this is required for tests to run. <<<
Take note of the comments in **server.js**, as your code needs to fit into specific places around the existing boilerplate.
You’re required to add the relevant code to make the app listen on the desired port. It won’t do it by default, whereas the solution will have the necessary code to accomplish that.