Deploy Apps on a Handshake name with Heroku

Table of contents1. Create the app
2. Deploy to Heroku
3. Add a custom domain

1. Create the app

// https://github.com/rithvikvibhu/simple-express-app-demo/blob/main/index.jsconst 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>');
});
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
});

2. Deploy to Heroku

3. Add a custom domain

  • Type: CNAME
  • Name: the subdomain you picked in the previous step (like website)
  • Value: the DNS target from the previous step

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store