This course will be retired on August 10, 2021. We recommend "REST APIs with Express" for up-to-date content.
We've done a lot of great work, but there are still a few topics it will be helpful to cover. Let's talk about some of the areas where we can improve our newly build API.
Some reading on CORS
Build Your Own Frond-End Application
Example Front-End Application
Here is an example application to explore if you wish. Keep in mind this is just one of many ways to consume the API. To run the front-end app, unzip the attached archive, and inside the directory run
$ npm install && nodemon
This will create a small server that will serve the app on port 3001. Be sure you have the API running on its own port (3000 should be the default) in a separate terminal window. Once both servers are running, you can view the front-end app by going to
in Chrome or Firefox.
You need to sign up for Treehouse in order to download course files.Sign up