paypal / generator-kraken-react

2 stars 4 forks source link

generator-kraken-react

Yeoman generator for creating web apps powered by kraken & react.
Gets you running with production ready web app in seconds.

Packed With

Installation

generator-kraken-react requires Node.js v4+ & npm v4+ to run. Install yeoman & generator-kraken-react by running

$ npm install -g yo generator-kraken-react

if the above command fails, try running it with sudo

Usage

To create a production ready web app

$ yo kraken-react

cd to the newly created project directory & run npm run dev to start development.

Heroku Deployment This requires heroku-cli to be installed on your system. cd to the newly created project directory & run heroku create && heroku config:set NPM_CONFIG_PRODUCTION=false && git push heroku <your_branch>:master to deploy on heroku.
Once deployed you can run heroku open to open your app in your default web browser. You will need a heroku account to deploy, if you don't have go ahead to heroku and get a free acount.

Bootstraped App

Taskify, is the bootstraped app that you get as a starter code when you use this generator.

Walkthrough of Bootstraped App

App Structure

├── Procfile
├── README.md
├── config
├── gulpfile.js
├── index.js
├── locales
├── package.json
├── public
│   ├── actions
│   │   ├── tasks.js
│   │   └── types.js
│   ├── components
│   │   ├── AddTask.js
│   │   ├── Header.js
│   │   ├── Layout.js
│   │   ├── Task.js
│   │   ├── TasksList.js
│   │   └── Todo.js
│   ├── main.js
│   ├── reducers
│   │   ├── index.js
│   │   └── tasks.js
│   ├── routes
│   │   └── index.js
│   └── store
│       └── index.js
├── src
│   ├── controllers
│   │   ├── index.js
│   │   └── tasks.js
│   └── models
│       └── task.js
├── test
└── webpack.config.js

Basic Usage