A project for moniter server
see egg docs for more detail.
$ npm i
$ npm run dev
# Browser open or Postman open it
http://localhost:8080/
$ 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.
- Set database with
config.json
and in thedatabase
directory
// Default
{
"development": {
"username": "db_username",
"baseDir": "model",
"password": "db_password",
"database": "db_name",
"host": "localhost",
"dialect": "mysql"
}
}
-
And Set the
enable
parameter ofsequelize
to true in theplugin
file in theconfig
directory -
More information to see sequelize
Thinking in JackDan