GithubHelp home page GithubHelp logo

modern-react-boilerplate's Introduction

Modern React + Typescript boilerplate

Basic boilerplate for React 16 with Typescript support, Webpack 4, React Router 4. A minimal React project boilerplate suitable for quick app prototyping (front-end only option) or as a starting point for app development (full-stack option).

Features ๐Ÿ”ฅ

  • React >16.4
  • Typescript >3.7
  • Webpack 4
  • React Router 4
  • Babel 7
  • ESLint enabled (see instructions below for set-up) with Prettier
  • MySQL or MongoDB

Installation ๐Ÿ’ฅ

Choose your installation type:

Typescript ๐Ÿš€ (includes eslint & prettier)

  • git clone https://github.com/BrunoTorresF/modern-react-boilerplate.git -b typescript
  • cd modern-react-boilerplate
  • npm i

For Babel 7 (includes locally installed eslint & prettier)

  • git clone https://github.com/BrunoTorresF/modern-react-boilerplate.git
  • cd modern-react-boilerplate
  • npm install

For Babel 6

  • git clone https://github.com/BrunoTorresF/modern-react-boilerplate.git -b babel-6
  • cd modern-react-boilerplate
  • npm install

If you don't need/want ESLint/Prettier integration

  • git clone https://github.com/BrunoTorresF/modern-react-boilerplate.git -b no-eslint
  • cd modern-react-boilerplate
  • npm install

Choose your development needs:

Front-end Only Development

  • Start Webpack Dev Server with npm run frontend

Fullstack Development

  • Start Webpack with npm run dev
  • Start nodemon with npm run start-dev
  • visit http://localhost:3000/
  • edit your database connection details and delete the database file you're not using

Optional

Installing ESLint Globally (optional)

If you don't have ESLint already install, you can install ESLint and the required dependencies with: npm i -g eslint eslint-config-airbnb eslint-plugin-node babel-eslint eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y prettier eslint-config-prettier eslint-plugin-prettier

modern-react-boilerplate's People

Contributors

brunotorresf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.