Skip to main content

Backend Deployment

In this section we will deploy our backend code to a hosting provider. Our backend is developed using NodeJS, so we need a NodeJS compatible hosting provider. There are 2 ways to deploy a NodeJS project, one is using the NodeJS build file, and another one is using the CI/CD pipeline.

info

There are 2 types of hosting providers.

  • Managed NodeJS hosting, also known as App Service or Functions. Example Heroku, Hostman, Render, Azure App Service, DigitalOcean App Platform, AWS Elastic Beanstalk, Google Cloud App Engine etc. This services can directly take code from your GitHub and deploy them.
  • Self managed hosting, where you have to manage and maintain the cloud server and deployments. It's mostly suitable for large applications.

Managed NodeJS Hosting Using GitHub

Self-Managed Hosting

Follow your cloud service providers guideline to upload and deploy code.