Purpose

ShockJS is an isomorphic starterkit/framework application. It was built to jump start complex ReactJS application's that require server-side rendering and RBAC support.

Features

Installation

This will eventually be done using slush but for now you will need to clone this repo:

git clone https://github.com/shockjs/shockjs.github.io.git

Configure your database settings:

src/server/config/development.json

Install dependencies:

npm install

You will need gulp if you dont already have it to get started:

npm install -g gulp

Run migrations:

gulp migrate
This will create a migrations table, user and auth tables.

Create a super user:

gulp user --create

Just type gulp to build the project and start the pm2 server:

gulp

Access the server at http://localhost:8000/

Structure

ShockJS is broken up into three sections.

You should try and put most of your code in the shared section however there are always exceptions.

File Naming

Javascript does not really have a standard around this however lowercase/full-stops seems to be commonly used and this is what will be used in the this project. Also files will be appended by their intended use: