Jackong / generator-reactapp

generator for react app

Home Page:https://github.com/Jackong/generator-reactapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generator-reactapp

NPM version build status David deps node version Gittip

NPM


What

generator-reactapp is a yeoman generator for react app.

Dependencies:


Why

Quickly start a project.


How

Getting Started

To install Yeoman

npm install -g yo

To install generator-reactapp from npm, run:

npm install -g generator-reactapp

Finally, initiate the generator:

yo reactapp

And then, generate feature by sub-generator:

yo reactapp:feature

Starting the dev-server and api-server

npm start

Running Tests

npm test

OR

npm run testing

Building Project

Building for production

npm run build 

Project Structure

  • .babelrc babel config

  • .editorconfig editor config

  • .eslintrc eslint config

  • gulpfile.js gulp tasks

  • server.js dev-server

  • api.js mock api server

  • db.json mock database for api

  • webpack.config.js webpack config

  • test/ tests

  • src/

    • templates/index.html html entry template
    • assets/
    • constants/ common constants
    • components/ react components(reusability)
    • styles/ css styles
    • containers/ react containers(route)
    • apis/ api config
    • stores/ mobx stores
    • actions/ redux actions
    • reducers/ redux reducers
    • sagas/ redux sagas
    • schemas/ redux schemas
    • selectors/ redux selectors
    • index.jsx js entry
    • libs.jsx js vendor
    • config.js config
  • dist/ generated by building

License

MIT

About

generator for react app

https://github.com/Jackong/generator-reactapp

License:MIT License


Languages

Language:JavaScript 97.3%Language:HTML 1.6%Language:CSS 1.1%