Deploy Apps on a Handshake name with Heroku
Got yourself a Handshake name and want to run your server on it? Heroku lets you do it! It’s pretty simple, especially if your apps already run on Heroku.

For this guide, we’ll start from scratch with a simple Node.js app. Heroku has great guides for other languages like Python, etc. and you can skip to step 3.

1. Create the app

If you already have an existing app ready to deploy, feel free to skip this step. Just be sure to update the port number, etc. and other language-specific variables. More info on Heroku.

This is a very simple 10-line express web server:

// https://github.com/rithvikvibhu/simple-express-app-demo/blob/main/index.js const express = require('express');

const app = express();

const port = process.env.PORT || 3000; app.get('/', (req, res) => {

res.send('<html><body><h1>Node.js on a handshake name!</h1></body></html>');

});

console.log(`Example app listening at

}); app.listen(port, () => {console.log(`Example app listening at http://localhost:${port}`) });

Fork this repo or create your own on GitHub as we’ll be linking it to Heroku next.

https://github.com/rithvikvibhu/simple-express-app-demo

2. Deploy to Heroku

Okay so now there’s code on GitHub and it’s ready to go live on Heroku. Create an account if you haven’t already.

Create a new App with the “New” button on the right.
['Rithvik Vibhu']
['Nodejs', 'Handshake', 'Heroku']