GithubHelp home page GithubHelp logo

ahmedazadcxv / mern-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patrick-du/mern-boilerplate

0.0 0.0 0.0 2.59 MB

Fullstack OAuth2.0 authentication boilerplate created with MongoDB, Express, React, and Node.js

Home Page: https://patrickdu-mern-boilerplate.herokuapp.com/

JavaScript 90.22% CSS 2.38% HTML 7.40%

mern-boilerplate's Introduction

MERN Boilerplate

  • Fullstack OAuth2.0 authentication boilerplate created with MongoDB, Express, React, and Node.js

Table of Contents


Installation and Usage

Run the following in your terminal:

git clone https://github.com/patrick-du/MERN-Boilerplate.git
cd MERN-Boilerplate
yarn install

cd client
yarn install

cd ..
yarn dev

Visit http://localhost:3000 in your browser to see the app running!


Features

Hot Reloading and Concurrently

  • Client side has Webpack Configuration for Hot Reloading
  • Server side has Nodemon for auto-loading
  • Concurrently added to simultatenously run client and server

Token-based Authentication Using OAuth 2.0

  • Passport middleware setup to support Google and Facebook strategies

Core Dependencies

  • prettier: an opinionated code formatter
  • eslint: a configurable JavaScript linter for identifying and reporting on patterns
  • concurrently: run commands concurrently

Client Specific Dependencies

  • react-scripts: a package that includes scripts and configuration used by Create React App
  • react-router-dom: a routing library React with DOM bindings
  • styled-components: visual primitives for the component age
  • axios: promise based HTTP client for the browser and Node.js

Server Specific Dependencies

  • dotenv: a zero-dependency module that loads environment variables from a .env file into process.env
  • nodemon: a simple CLI utility that makes it easy to run Node scripts, watch for file changes, and restart the process automatically
  • cors: Node.js CORS middleware
  • express: a fast, unopinionated, minimalist web framework for Node.js
  • express-session: simple session middleware for Express
  • mongoose: MongoDB object modeling tool
  • connect-mongo: MongoDB session store for Express and Connect
  • passport: simple, unobtrusive authentication for Node.js
  • passport-google-oauth20: Google (OAuth 2.0) authentication strategies for Passport
  • passport-facebook: Facebook authentication strategy for Passport
  • http-proxy-middleware: Node.js proxy middleware for connect, express and browser-sync

mern-boilerplate's People

Contributors

patrick-du avatar

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.