Create a new Cabloy project

$ npm init cabloy cabloy-cms --type=cabloy
$ cd cabloy-cms
$ npm i

Install CMS module

$ npm i egg-born-module-a-cms

Install CMS theme module

$ npm i egg-born-module-cms-themeblog

Configuring MySQL

Test Environment

src/backend/config/config.unittest.js

  // mysql
  config.mysql = {
    clients: {
      // donnot change the name
      __ebdb: {
        host: '127.0.0.1',
        port: '3306',
        user: 'root',
        password: '',
        database: 'sys', // donnot change the name
      },
    },
  };

Development Environment

src/backend/config/config.local.js

  // mysql
  config.mysql = {
    clients: {
      // donnot change the name
      __ebdb: {
        host: '127.0.0.1',
        port: '3306',
        user: 'root',
        password: '',
        database: 'sys', // recommended
      },
    },
  };

Production Environment

src/backend/config/config.prod.js

  // mysql
  config.mysql = {
    clients: {
      // donnot change the name
      __ebdb: {
        host: '127.0.0.1',
        port: '3306',
        user: 'root',
        password: '',
        database: '{{name}}',
      },
    },
  };

Run

Start the backend service:

$ npm run dev:backend

Start the frontend service:

$ npm run dev:front

Background management

URL: http://localhost:9092/
UserID:root
UserPassWord:123456