Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

universal-app

1.0.17 • Public • Published

universal-app

Greenkeeper badge Travis npm npm

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:

  • Move installation as a dependency installation
  • Add Graphql module
  • Add passport module
  • Add Relay module

Keywords

none

install

npm i universal-app

Downloadsweekly downloads

1

version

1.0.17

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability