Skip to content
Gaurav Walia edited this page Oct 23, 2021 · 6 revisions

A best option for the beginner for deployment of MERN stack app

Normal Deployment

🚀 Local Development and Production Deployment with Heroku CLI

If you are following this project from a long time, then you know that by default we were having this template in the project.

  • Mostly used by beginners
  • for development we have the script yarn run dev:mern to develop and run the whole MERN stack application locally
  • for testing we support script yarn run test to test the MERN stack application
  • for deployment we have ProcFile that will be used for deployment in production with the help of Heroku CLI
  • Doesn't support automation as you have to deploy with Heroku CLI every time
  • Used mostly when we only have master/main branch
  • You can use this approach with branching as well
  • Example: React-Todo-App

🚀 Branching, CI/CD with GitHub Actions and GitHub Heroku Integration

  • Mostly used by beginners/Intermediate devs
  • Use master/main branch as a production
  • Use dev as development branch where you will merge all the feature branches
  • for development we have the script yarn run dev:mern to develop and run the whole MERN stack application locally
  • for testing we support script yarn run test to test the MERN stack application
  • Supports GitHub Actions Workflow for CI
  • For Heroku Integration you have to give access to the GitHub repository from Heroku
  • for deployment we have Heroku Integration with GitHub using ProcFile for automated deployment
  • Example: Free-Algorithms-Books-website

🚀 Branching and CI/CD with GitHub Actions

  • Mostly used by Intermediate/Advanced devs
  • Use master/main branch as a production
  • Use dev as development branch where you will merge all the feature branches
  • for development we have the script yarn run dev:mern to develop and run the whole MERN stack application locally
  • for testing we support script yarn run test to test the MERN stack application
  • for deployment we have Github Actions workflow using ProcFile for automated deployment
  • Supports GitHub Actions Workflow for CI/CD using akhileshns/heroku-deploy workflow
  • Example: HacktoberFest21

Containerisation with Docker

🚀 Docker Compose in Development and Production Deployment

Use of heroku.yml