wil-gerard / mern-boilerplate

A quick mern boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic MERN Boilerplate

This project was bootstrapped with Create React App.

Enviornment

Since this is a MERN boilerplate it does expect a mongoDB connection url. See .env.example in /config. environments are split up -> the environment for dev is .env.development and prod is .env.production.

PORT=8000
MONGO_CONNECTION_STRING=

Starting the app:

This boilerplate has a few scripts. It uses npm-run-all to run multiple scripts in parallel or sequence, check the package.json for more information.

Command Effect
dev:start Starts React and the node express server in development environment
dev:server:start Starts the express server in development environment
start Starts the server in production mode (This expects the React app to have been built)
build Runs available tests before building the react application

About

A quick mern boilerplate


Languages

Language:JavaScript 57.0%Language:HTML 27.5%Language:CSS 14.9%Language:Shell 0.5%