Skip to content

arravind-r/simple-mern-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple MERN Stack Boilerplate - Update Feb, 2019

A Simple MERN Stack Boilerplate To Get Started Fast For Development

Enter "npm start" or "yarn start" to get started.

This Boilerplate is built using MERN stack

  1. M - MongoDB
  2. E - ExpressJS
  3. R - ReactJS
  4. N - NodeJS

Hot Reloading and Concurrently

1. Added Webpack Configuration For Hot Reloading - Client Side

2. Added Nodemon for auto-loading - Server Side

3. Added Concurrently For Simultaneously Running Client and Server

Steps to connect with mongoDB

  • Create a ".env" file in the server directory of your project
  • In that file place the following line
module.exports = { mongoURI: "Your Connection String Here" };
  • Eg:- mongoURI: 'mongodb://127.0.0.1/my_mern'

Get Started

To get started, Clone this repo

git clone https://github.com/arravind-r/simple-mern-stack.git
cd simple-mern-stack
"npm install" or "yarn install"

Then to install node_modules npm run server in root folder. And for client side, change the directory into client and run install.

cd client
"npm install" or "yarn install"

After installing the node_modules in "client" folder, go back to main or root directory

cd ..

##Final Step Finally run the below command to see it in action

"npm run start:dev"
        or
"yarn run start:dev"

HELP NOTE: If any of you could help improve this boilerplate, please do.