This is a lightweight RESTful API Server scaffolding based on Koa2, supporting ES6. Since the Koa version is upgraded to 2.3.0+, in order to match the corresponding dependencies, the Node.js version is required to be greater than or equal to v8.0.0 (v11.13.0 is recommended), and the NPM version is greater than or equal to v5.0.0. It is recommended to use yarn instead of npm. This scaffolding only installs some necessary plug-ins that do not conflict with Koa2 to build a RESTful API Server, with instructions for each plug-in. Syntax checking with ESlint. Therefore, the scaffolding mainly provides RESTful API, so the front-end static resource processing is not considered for the time being, and only the basic method of static resource access is provided to facilitate access to resources such as pictures uploaded by users to the server. The basic directory structure is consistent with vue-cli and can be used with front-end frameworks such as React, AngularJS, and Vue.js.
Features
- Directory Structure Description
- Authentication instructions when integrating NUXT requests
- Sample code of various mainstream frameworks calling RESTful API (for reference only)
- Introduction of plug-ins
- Vue-cli deployment instructions
- Development environment deployment
- Supports Node.js native debugging function