It is open source and free, not only can quickly develop the needs of adding, deleting, modifying, and querying, but also supports Serverless, Docker and other convenient deployment methods, whether it is used to learn how to develop the management background, or rapid development is a good choice.
node.js, midway.js, egg.js, MySQL, and Typescript as backends
vue.js, element-ui, jsx, vuex, vue-router as frontends
The overall architecture is relatively simple, suitable for beginners to learn, and it is also suitable for developing API interfaces for Mini Programs, business management within enterprises, ERP, CMS, and the background of apps.
run
One. Modify the database configuration,
src/config/config.local.ts
config.orm = { type: 'mysql', host: '127.0.0.1', port: 3306, username: 'root', password: '', database: 'cool-admin', synchronize: true, logging: true,}
Install dependencies
$ npm i$ npm run dev$ open http://localhost:8001/
We can quickly create our own interfaces
import { Provide } from '@midwayjs/decorator';import { CoolController, BaseController } from 'midwayjs-cool-core';import { DemoAppGoodsEntity } from '../../entity/goods';/** * 商品 */@Provide()@CoolController({ api: ['add', 'delete', 'update', 'info', 'list', 'page'], entity: DemoAppGoodsEntity})export class DemoAppGoodsController extends BaseController { /** * 其他接口 */ @Get('/other') async other() { return this.ok('hello, cool-admin!!!'); }}
Functions:
1. Workbench
2. System management – including permission management, user list, menu list, role list
3. Parameter configuration
4. Monitoring management – log management
5. Plugin management
6. Framework tutorial
7. Task management