Skip to content

Zetrio16/example-mern-stack-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains a 'docker-compose.yml' file that allows you to simply run:


docker compose up -d

back end is available at http://localhost/4000 and the front end is at http://localhost/3000.

When you are done, simply run:


docker compose down 

Deploying

To deploy the application, you will need to do the following:

  1. Build the frontend.

    cd frontend
    yarn build
    
  2. Copy the artifacts from the newly created/populated frontend/build directory into backend/src/static directory.

  3. Deploy the backend directory and start it using node src/index.js. The frontend application will be deployed using the backend.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.1%
  • HTML 8.4%
  • SCSS 4.5%
  • Dockerfile 4.0%
  • CSS 3.0%