Skip to content

sunguroku/porter-mern

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

porter-mern

This is an example MERN boilerplate that demonstrates how to deploy a full-stack application using Porter.

Porter deploys your stack using just the single docker-compose.yml file in your local machine, allowing you to go from development to production with a single command.

This is an experimental feature of Porter that is still in active development.

Prerequisites

  • You must have Docker installed on your computer. You can download Docker here.
  • Once you have Docker installed, you must be logged into Docker Hub. This is necessary to push your images into Porter's repository. To do this, run docker login from the terminal.

Getting Started

  1. Clone this repository into your local directory.
  2. Log in and create a project on https://dashboard.alpha.getporter.dev.
  3. Download the Porter CLI with npm i -g porter-cli (currently Mac only).
  4. Login from the CLI by running porter login alpha.getporter.dev.
  5. Develop your application by running docker-compose up --build from the root directory. For those who are not familiar with Docker, this will spin up a development environment with hot reloading configured for the MERN stack. You can view your application on http://localhost:3000.
  6. Once you are ready to deploy, run porter compose from the root directory. This will deploy your entire stack on Porter. This may take up to 5 minutes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 45.9%
  • HTML 31.8%
  • CSS 17.2%
  • Dockerfile 5.1%