From the course: Programming Foundations: Application Architecture

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Run the to-do list application

Run the to-do list application

Let's see how the front end and back end work together to ensure a smooth experience. To run this application, we'll first need to install the dependencies. We can do this by navigating to the folder with our to-do list application. Then we'll use npm to install the dependencies. If you don't have npm already, you can install it at nodejs.org. The list of dependencies can be found in the package.json file. This contains metadata about our application. It looks like we have one dependency, which is the Express framework. To run the application, we'll use the node command with the name of the file that contains the server code. Here, that's app.js. In our output, we can see our application is up and running on our local machine. This tells us that the Node.js server is successfully listening for incoming requests at this address, meaning our back-end code is fully operational. Typically, for a real live application, you would run this code on a dedicated computer or with a cloud service…

Contents