Skip to content

koa2 server, rest api, rpc api, Font-End Engineer dev

Notifications You must be signed in to change notification settings

ddtramp/koa2-mock-data

Repository files navigation

README


Local mock data

local mock data, for Font-End egineer

Use

yarn install
yarn run mock

and u can add api to controllers, rest, static folder

Structure

/
  /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

knowledge


by jack

About

koa2 server, rest api, rpc api, Font-End Engineer dev

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published