A barebones Node.js app using Express 4. This application supports the Getting Started on Heroku with Node.js article - check it out.
Deploy to Heroku Run on Replit Remix on Glitch Deploy to Azure Deploy to IBM Cloud Deploy to Amplify Console Run on Google Cloud Deploy on Railway Deploy to Koyeb
Make sure you have Node.js and the Heroku CLI installed.
$ git clone https://github.com/heroku/node-js-getting-started.git # or clone your own fork $ cd node-js-getting-started $ npm install $ npm start
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku main
$ heroku open
or
Deploying to Repl.it
Note: Requires a (free) Replit account
Provides:
- Free deployment of app
- Free HTTPS url (https://<app name>.<username>.repl.co)
- Supports custom domains
- Downtime after periods of inactivity (solution 1, solution 2)
For more information about using Node.js on Heroku, see these Dev Center articles: