Coder Social home page Coder Social logo

react-boilerplate's Introduction

<react-boilerplate />

This boilerplate consists of applying the simple React architecture for you business.

Starting

Install dependencies:

npm install

Run this project:

npm run start

Go to: http://localhost:8080/

Project structure

  • src/components: Components of React to be shared and reused in the project;
  • src/containers: Page components that apply business knowledge and present themselves as pages;
  • src/providers: Implementation of APIs that communicate with backend;
  • src/store: State configuration with Redux;
  • src/core: Utilities, constants, assets, configurations, i18n and others.
  • stub: Routes of mock backend API`s.
  • storybook: Storybook configuration (The stories writing in components folder).

Linter

Use eslint with Airbnb extension.

Testing

Unit: the unit tests are intended to test parts of our project, and use Jest.

Components documentation

Run the command storybook and view components using Storybook

Libs

Scripts

//Start webpack in development mode
"start": "webpack-dev-server",

//Build this product for production
"build": "webpack --config webpack.config --mode production",

//Run unit test
"test": "jest",

//Run unit test in watch mode
"test:watch": "jest --watch",

//Run unit test and show coverage report
"test:coverage": "jest --coverage",

//Run mock server
"stub": "nodemon stub --exec babel-node --no-babelrc --presets=@babel/preset-env",

//Run storybook for showing components documentation
"storybook": "start-storybook -p 6006",

react-boilerplate's People

Contributors

marlonmleite avatar

Watchers

James Cloos avatar Jose Alves de Sousa Neto 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.