个人博客后端,基于egg.js框架开发
前端仓库:https://github.com/Chenwangdexiwang/Blog
https://eggjs.org/zh-cn/core/deployment.html
运行或部署前的注意事项:
- 请修改
config/secure.js
中的安全配置 - 请修改
database/config.json
中的配置,以便在运行时创建相关表 - 上传接口使用腾讯云COS的存储服务,如果你使用的第三方服务请自己实现相关接口
- 如使用腾讯云COS请记得修改
config/secure.js
文件内的tencentCos
配置
see egg docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7001/
$ npm start
$ npm stop
- Use
npm run lint
to check code style. - Use
npm test
to run unit test. - Use
npm run autod
to auto detect dependencies upgrade, see autod for more detail.