heymern

1.0.13 • Public • Published

heymern

A MERN Generation Script

Creates a fullstack MERN app housed inside 3 containers, React Container, Express Container and Mongo.

Requirements: Docker must be installed to run the MERN app via instructions below. Or you can run the app locally by installing the dependencies and running the server and client seperately.

Installation:

Global install:

$ npm i -g heymern

$ heymern

Or use npx:

$ npx heymern

Run with docker

$ cd mern-docker-app

$ docker comose up

To run locally without docker: $ cd mern-docker-app/client

$ npm install

$ npm start

$ cd ../server

$ npm install

$ npm run dev

Open browser to localhost:3000

Make changes to the code and refresh the browser to see the changes.

File structure

mern-docker-app/
├── client/
│   ├── public/
│   │   └── index.html
│   ├── src/
│   │   ├── App.js
│   │   └── index.js
│   ├── Dockerfile
│   └── package.json
├── server/
│   ├── src/
│   │   └── index.js
│   ├── Dockerfile
│   └── package.json
├── docker-compose.yml
├── docker-compose.prod.yml
└── .dockerignore

Readme

Keywords

none

Package Sidebar

Install

npm i heymern

Weekly Downloads

7

Version

1.0.13

License

ISC

Unpacked Size

932 kB

Total Files

6

Last publish

Collaborators

  • jonclawson