Skip to content

Z-BP/english-learing-miniprogram-backend

Repository files navigation

english-learing-miniprogram-backend

毕设儿童英语学习小程序 后端程序

QuickStart

database

  1. 需要在 config/config.default.js 文件中修改 sequelize 配置
  // sql
  config.sequelize = {
    dialect: 'mysql',
    host: '127.0.0.1',
    port: 3306,
    database: 'my_app',
  };
  1. 在 app.js 文件中开启数据库表同步
  async didLoad() {
    // 请将你的插件项目中 app.beforeStart 中的代码置于此处。
    if (this.app.config.env === 'local' || this.app.config.env === 'unittest') {
      await this.app.model.sync({ alter: true });
    }
  }

see egg docs for more detail.

Development

$ npm i
$ npm run dev
$ open http://localhost:7001/

Deploy

$ npm start
$ npm stop

npm scripts

  • 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.

About

儿童英语学习小程序 后端程序 毕设

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published