local mock data, for Font-End egineer
yarn install
yarn run mock
and u can add api to controllers
, rest
, static
folder
/
/controllers // rpc api
/rest // restfull api
/static // static files, such as .json
app.json // main entry
controller.js // handler route
getIPAddress.js // get server ip address, now not in use
mock-server.js // the koa server
package.json
rest.js // handle rest api, add middleware
static-files.js // handle static files
yarn.lock // yran lock
-
koa2
-
koa2-cors
-
koa-bodyparser
-
koa-router
-
babel
-
nodejs
-
programer
-
colors
-
ips (internal module)
by jack