OWL
Source
Yeoman generator for React.js projects
Documentation
Directory Layout
.
├── /build/ # The folder for compiled output
├── /docs/ # Documentation files for the project
├── /node_modules/ # 3rd-party libraries and utilities
├── /src/ # The source code of the application
│ ├── /actions/ # Action creators that allow to trigger a dispatch to stores
│ ├── /assets/ # Static files which are copied to ./build on compile
│ ├── /components/ # React components
│ ├── /constants/ # Enumerations used in action creators and stores
│ ├── /content/ # Website content (plain HTML or Markdown, Jade, you name it)
│ ├── /core/ # Core components (Flux dispatcher, base classes, utilities)
│ ├── /stores/ # Stores contain the application state and logic
│ ├── /styles/ # CSS styles (deprecated, put CSS into components' folders)
│ ├── /views/ # HTML templates for server-side rendering, emails etc.
│ ├── /app.js # Client-side startup script
│ └── /server.js # Server-side startup script
│── gulpfile.js # Configuration file for automated builds
│── package.json # The list of 3rd party libraries and utilities
│── preprocessor.js # ES6 transpiler settings for Jest
└── webpack.config.js # Webpack configuration for bundling and optimization
$ git clone -o monitoring-system https://github.com/jerrysdesign/monitoring-system.git portal
$ cd portal
$ npm install -g gulp # Install Gulp task runner globally
$ npm install # Install Node.js components listed in ./package.json
How to Build
$ gulp build # or, `gulp build --release`
By default, it builds in debug mode. If you need to build in release mode, add
--release
flag.
How to Run
$ gulp # or, `gulp --release`
This will start a lightweight development server with LiveReload and synchronized browsing across multiple devices and browsers.
How to Deploy
$ gulp build --release # Builds the project in release mode
$ gulp deploy # or, `gulp deploy --production`
For more information see deploy
task in gulpfile.js
.
How to Update
You can always fetch and merge the recent changes from this repo back into your own project:
$ git checkout master
$ git fetch react-starter-kit
$ git merge react-starter-kit/master
$ npm install
How to Test
Run unit tests powered by Jest with the following npm command:
$ npm test
Test any javascript module by creating a __tests__/
directory where
the file is. Name the test by appending -test.js
to the js file.
Jest will do the rest.
Learn More
- Getting Started with React.js
- React.js Wiki on GitHub
- React.js Questions on StackOverflow
- React.js Discussion Board
- Flux Architecture for Building User Interfaces
- Jest - Painless Unit Testing
- Flow - A static type checker for JavaScript
- The Future of React
- Learn ES6, ES6 Features
Copyright
Source code is licensed under the MIT License (MIT). See LICENSE.txt file in the project root. Documentation to the project is licensed under the CC BY 4.0 license. React logo image is a trademark of Facebook, Inc.