In this tutorial-style guide, we will be deploying a sample NodeJS app to Porter, that uses the Express web framework to host static content.
Porter has a sample getting started NodeJS app on Github at porter-dev/node-js-getting-started. If you look at the repository, you will find that it is a template repository which means that you can simply click on the Use this template button on the frontpage of the repository or navigate to node-js-getting-started/generate to generate a new repository based on this template.
Deploy app to Porter
Click on Web Service > Launch Template and choose the Git Repository deployment method.
Choose the repository you generated in the Set up step. If you cannot find the repository from the search bar, make sure that you have given access to the Porter Github app. Refer to Updating the Porter Github App to do this.
Click on the main branch, then click on Continue. You will be presented with a screen that looks like the following.
Click on Continue > Deploy. This will start deploying your app to Porter after which you will be redirected to the applications view. Here you will be able to see your newly created app.
Click on the app in the applications view and you should be able to see the URL which will serve your newly created NodeJS app.
Once the app is successfully deployed, navigate to the URL as above and you should see something like the following.
Congratulations! You just deployed your first NodeJS app on Porter!
Now that you have deployed your first app on Porter, feel free to make changes to the git repository that you created from porter-dev/node-js-getting-started and push updates to your Porter app. You should also check out the documentation for some of the advanced topics.