GithubHelp home page GithubHelp logo

arravind-r / simple-mern-stack Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 140 KB

Simple MERN Stack Boilerplate

HTML 6.48% JavaScript 84.12% CSS 9.40%
mern-stack mern-boilerplate mern-folder-structure mernstack react expressjs mongodb node boilerplate fullstack

simple-mern-stack's Introduction

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.

simple-mern-stack's People

Contributors

arravind-r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

bobyvankenobi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.