Home

Awesome

UniversalJS Boilerplate

Universal JS Boilerplate

A boilerplate to quick start JavaScript Isomorphic Web Applications

Technology Stack

Requirements and Install

Node.js v0.10.33 installed at least.

$ npm install -g gulp@3.9.0
$ npm install -g babel browserify nodemon
$ npm install
$ npm run build
$ npm start

And open your browser on http://localhost:3000

Folder structure

.
├── /build/                   # Transpiled and minifiqued output files.
├── /docs/                    # Documentation about your project.
├── /node_modules/            # Node Modules and 3rd-party libraries.
├── /src/                     # Source code of the web application.
│   ├── /app/                 # Isomorphic App source code.
│   │   ├── /components/      # React components.
│   │   ├── /containers/      # Redux containers.
│   │   └── routes.js         # Shared routes between Client-Server.
│   │   └── client.js         #
│   │   └── server.js         #
│   │   └── config.js         # App config (URLs, names, etc...).
│   └── /styles/              # Stylesheets coding with Stylus Preprocessor.
├── /tasks/                   # Gulp tasks for build the client part
├── gulpfile.babel.js         # Config file for automated Builders.
├── package.json              # App manifest and list of libraries installed.
├── .editorconfig             # define and maintain consistent coding styles.
├── .eslintrc                 # ECMAScript6 and React Code linter.
├── .babelrc                  # babel ES6 rules.
├── .jscsrc                   # JavaScript Code styles.
└── .stylintc                 # Stylus CSS Code style.

License

Open Source. MIT © Carlos Azaustre