Giter VIP home page Giter VIP logo

react-scaffolding's Introduction

react-scaffolding

React scaffolding is a react starter kit. You can use the scaffolding to set up your project quickly. The description about the scaffolding will be coming soon, please waiting for it patiently. Please forgive my poor english.

Table of Contents

  1. Description
  2. Features
  3. Requirements
  4. Getting Started
  5. Application Structure
  6. Reference

Features

Requirements

  • node ^7.9.0
  • yarn ^0.23.2 or npm ^4.2.0

Getting Started

After confirming that your development environment meets requirements, you can create a new project based on react-scaffolding by doing the following:

Install from source

First, clone the project:

$ git https://github.com/sym900728/react-scaffolding.git <my-project-name>
$ cd <my-project-name>

Then install dependencies and check to see it works. It is recommended that you use Yarn for deterministic installs, but npm install will work just as well.

$ yarn install    # Install project dependencies
$ yarn start      # Compile and launch (same as `npm start`)

If everything works, you should see the following:

While developing, you will probably rely mostly on yarn start; however, there are additional scripts at your disposal:

yarn run <script> Description
start Serves your app at localhost:3000. HMR will be enabled in development.
start:dev Same as start
start:prod Serves your app at localhost:3000 but it is production environment.
compile Compiles the production application to disk (~/dist by default).
compile:dev Compiles the development application to disk (~/dist by default).
compile:prod Same as compile
compile:analyze Compiles the production application to disk (~/dist by default) with source map for analyzing. source-map-explorer
compile:analyze:dev Compiles development application to disk (~/dist by default) with source map for analyzing.
compile:analyze:prod Same as compile:analyze
test Runs jest tests
clean Remove ~/dist folder
clean:dist Same as clean
clean:node_modules Remove ~/node_modules folder
reinstall Remove ~/node_modules folder, then run yarn install.
lint Lint all .js files.
lint:fix Lint and fix all .js files. Read more on this.

Application Structure

.
├── bin                      # Build/Start scripts
├── config                   # Project and build configurations
├── src                      # Application source code
│   ├── assets               # Global Reusable assets
│   ├── components           # Global Reusable Presentational Components
│   ├── containers           # Global Reusable Container Components
│   ├── libs                 # Global library
│   ├── public               # Global public assets
│   ├── routes               # Main route definitions and async split points
│   │   ├── index.js         # Bootstrap main application routes with store
│   │   └── Home             # Fractal route
│   │       ├── index.js     # ProductDetail route definition
│   │       ├── container    # Connect components to actions and store
│   │       ├── modules      # Collections of reducers/constants/actions
│   │       └── routes **    # Fractal sub-routes (** optional)
│   ├── index.html           # Main HTML page container for app
│   └── index.js             # Application rendering
└── tests                    # Unit tests

Reference

This scaffolding quotes from React Redux Starter Kit

react-scaffolding's People

Contributors

sym900728 avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.