Testing

Now that our application is coded, we need to run it locally for testing. To follow Heroku convention, we are not going to run node main.js directly but we are going to use Foreman.

Foreman is tool to run and manage procfile based applications.

Installation of Foreman

Running the application

Starting our applciation locally using foreman is really simple, run the command:

$ foreman start

You can now open a browser and take a look at http://localhost:5000.

Last updated