Skip to content

jaykou25/audio-book-backend

Repository files navigation

用于小程序后端的简单应用(eggjs开发)

数据库连接

/config/config.local.js

"use strict";

exports.sequelize = {
  dialect: "mysql",
  host: "0.0.0.0",
  port: 3306,
  database: "name",
  username: "user",
  password: "password",
};

/config/config.prod.js

"use strict";

exports.sequelize = {
  dialect: "mysql",
  host: "0.0.0.0",
  port: 3306,
  database: "name",
  username: "user",
  password: "password",
};

/database/cofig.json

用于migration连接数据库

{
  "development": {
    "dialect": "mysql",
    "host": "0.0.0.0",
    "port": 3306,
    "database": "name",
    "username": "user",
    "password": "password"
  }
}

Development

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

Deploy

$ npm start
$ npm stop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published