fadyx / mern-mono

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mern-mono

This project is a boilerplate overhead setup for the workflow of making a MERN-stack web app in a mono-repository.

scripts in package.json

client: cd client && npm run start

Runs the ReactJS client independently

server: DEBUG=server:* npx nodemon -r dotenv/config src/index.js dotenv_config_path=.development.env

Runs the NodeJS+ExpressJS server independently in development mode

dev: npm run server && npm run client

Runs both Client and Server independently

start: node -r dotenv/config src/index.js dotenv_config_path=.production.env

Runs the whole application in production mode, serving ReactJS built static files from build folder inside /client

build: cd client && npm install && npm run build

Builds production static files for the client and install its dependencies


Side notes

  • Add "proxy":"http://localhost:${local_server_port}", to the package.json file of the ReactJS client folder
  • Add "homepage":".", to the package.json file of the ReactJS client folder

About

License:The Unlicense


Languages

Language:JavaScript 52.0%Language:HTML 29.0%Language:CSS 15.4%Language:Shell 3.6%