Git Product home page Git Product logo

react-skeleton's Introduction

react-skeleton

Simple boilerplate for React apps based on create-react-app include scss modules

No configuration or complicated folder structures, just the files you need to build your app.
Once the installation is done, you can run some commands inside the project folder:

npm start or yarn start

Runs the app in development mode.
Open http://localhost:3000 to view it in the browser. The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

npm run build or yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

npm test or yarn test

Runs the test watcher in an interactive mode. By default, runs tests related to files changed since the last commit.

Docker

You can want to use Docker for production. For this should use following commands:

  1. build image docker build . -t react_skeleton
  2. run container docker run -p 8080:80 react_skeleton

docker-compose

version: '2'
 services:
   react_skeleton:
     container_name: react_skeleton
     build: <folder path to Dockerfile> 
     ports:
       - "8080:80"

lint-staged

Run linters against staged git files and don't let ๐Ÿ’ฉ slip into your code base!
Seelint-staged

###Prettier See. This boilerplate include auto formatting code before each git commit You can change rules for formatting just edit .prettierrc or you can remove this feature remove from package.json

"lint-staged": {
  "*.{js,jsx}": [
    "prettier --config .prettierrc --write",
    "git add"
  ]
},

react-skeleton's People

Contributors

arthur-nesterenko avatar raizerz avatar

Stargazers

 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.