Giter Site home page Giter Site logo

mern-boilerplate-lite's Introduction

MERN Boilerplate (LITE)

A simple boilerplate for creating Web Applications involving React, Express, Node, and MongoDB

Getting Started

  1. Install Node.js

  2. Install MongoDB

    brew install mongodb (If you have Homebrew)

  3. Copy the Project Repo into your own directory

    git clone [email protected]:alexander-lee/MERN-boilerplate-lite.git

  4. Install all the Dependencies

    npm install

  5. Install Gulp globally

    npm install -global gulp-cli

  6. Start the Node Server

    npm start or gulp

Setting up the Database

  1. Create a Directory for MongoDB to live in (Create the folder /data/db at your root).

    mkdir -p /data/db

  2. Make sure your directory has the right permissions

    chmod 0755 /data/db && sudo chown $USER /data/db

  3. Before you start the Node Server, start your Mongo Process

    mongod --dbpath /data/db

  4. Create a Database (if you didn't make one yet)

    mongo

    use sampledb

  5. Add your Database to the configuration file (config.js)

    module.exports = {
        "development": {
            "db": "mongodb://localhost:27017/{YOUR DATABASE NAME}"
        }
    }
    
    

File Structure

  • /bin holds the Server Script (Don't Touch)
  • /public holds static/public files
  • /client is your Front-End (Client-side) React Components
  • /models holds all of your MongoDB models
  • /routes holds all of our Backend Routing
  • /styles is where you write your Sass (SCSS) files
  • /views is where you write your .ejs files (Including CDN scripts)

Useful Readings

mern-boilerplate-lite's People

Contributors

alexander-lee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

scopeusc

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.