rhino

React 16.6.3, React-router 4, Mobx 5 and so on...

Stars
7

Rhino

React16.6.3 boilerplatereact-router``mobx``expressWebGithub Pages

React 16.6.x

Flux

NodeJS

Development Environment

  cd rhino
  npm install gulp-cli -g
  npm install
  gulp
  Open browser with http://localhost:5001/dev/index.html#/login

Release & Build

  1. Update sources/index.html

    Update base url for global ajax connection

  2. gulp clean

    remove all of thing within the build & release folder

  3. gulp build

    compile source code

  4. gulp release

    compress build folder to the release

Technology Stack

Restful Strict

URL HTTP GETPOSTDELETEPUT

HTTP
GET Query
POST Save
PUT Update
DELETE Remove

GEThttps://server.io/user/{{AGE}}``age

POSThttps://server.io/user HTTP payload

PUThttps://server.io/user/{{NAME}}``name

DELETEhttps://server.io/user/{{ID}}``ID

Transfer Protocol

CORS

Head

HTTPS

status

  • SUCCESSHttp response success.
  • WARNINGWarning infomation.
  • TIMEOUTLogin timeout.
  • BADBad request.
  • NONENo API founded.
  • NONSUPPORTRequest method is not support.
  • UNSUPPORTUnsupported media type.
  • EXCEPTIONServer-side exceptions.
  • RESUBMIT: Resubmit HTTP request.

token__

message:

total:

Body

Object**Arraynull

Mock Data

{
  "head": {
    "status": "SUCCESS",
    "message": "Your login has been successful!",
    "total": 1
  },
  "body": {
    "username": "admin",
    "password": "admin"
  }
}