Egg.js、 MongoDB、 mongoose、 API
使用Egg.js创建后台服务,提供API接口
技术栈: Egg.js、MongoDB、mongoose、MySQL
所有API接口在postman上通过测试,说明如下:
接口模块:
另:
使用前安装配置MongoDB和MySQL数据库,如果没有记得先注释掉 /config/config.default.js 里配置数据库的语句块(注意: 我们的数据是基于数据库的)
demo访问格式如下: http://127.0.0.1:7001/public/examples/index.html
项目正在持续更新中,喜欢的请点心,关注,star ,fork,这些是我长期坚持下去的动力 (。_ 。) ✎_
$ npm i
$ npm run dev
$ open http://localhost:7001/
$ npm start
$ npm stop
npm run lint
to check code style.npm test
to run unit test.npm run autod
to auto detect dependencies upgrade, see autod for more detail.