universal-app
v1.0.17
Published
universal-app
Downloads
19
Readme
universal-app
Extensible server for hosting a React universal app(Isomorpic) with support for Graphql, Relay, Passport, and the option to customize own routes, and setup.
Why?
All these boilerplates, starter-kits and different ways to setup, no standards for forlder structuring, file setups etc. Here is a all in one package for hosting hot development and a productionready environment on a single command. Shared React state, Redux state, Relay Environement is also available.
Table of Contents
Getting started
$ npm i -g universal-app-cli
$ ua new myApp
$ ua run
Folder structure
app/ //React application
config/ //Configuration files that are loaded, feel free to create own.
routes/ //Add custom routes
Adding modules
There is possible to add predefined setups for different modules. Right now only GraphQL and Passport is possible. Read more about how to add them and edit them here:
Adding GraphQL
$ ua add graphql
Files that is added and need edit:
config/graphql.js
routes/graphql.js
Adding Passport
$ ua add passport
Files that is added and need edit:
config/passport.js
routes/passport/index.js
Todo:
- [x] Move installation as a dependency installation
- [x] Add Graphql module
- [x] Add passport module
- [ ] Add Relay module