/monitor_server

A project for monitor server by egg.js and graphql!

Primary LanguageJavaScriptMIT LicenseMIT

monitor-server

A project for moniter server

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run dev

Interface

# Browser open or Postman open it
http://localhost:8080/

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.

database

  • Set database with config.json and in the database directory
// Default
{
  "development": {
    "username": "db_username",
    "baseDir": "model", 
    "password": "db_password",
    "database": "db_name",
    "host": "localhost",
    "dialect": "mysql"
  }
}
  • And Set the enable parameter of sequelize to true in the plugin file in the config directory

  • More information to see sequelize


Thinking in JackDan