React 16.6.3, React-router 4, Mobx 5 and so on...
React16.6.3 boilerplatereact-router``mobx``express
WebGithub Pages
cd rhino
npm install gulp-cli -g
npm install
gulp
Open browser with http://localhost:5001/dev/index.html#/login
Update base url for global ajax connection
remove all of thing within the build & release folder
compile source code
compress build folder to the release
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
HTTPS
status
SUCCESS
Http response success.WARNING
Warning infomation.TIMEOUT
Login timeout.BAD
Bad request.NONE
No API founded.NONSUPPORT
Request method is not support.UNSUPPORT
Unsupported media type.EXCEPTION
Server-side exceptions.RESUBMIT
: Resubmit HTTP request.token__
message:
total:
Object**Arraynull
{
"head": {
"status": "SUCCESS",
"message": "Your login has been successful!",
"total": 1
},
"body": {
"username": "admin",
"password": "admin"
}
}