后台管理系统 koahub-simple-cms

码农软件 · 软件分类 · 建站系统CMS · 2020-01-23 20:57:43

软件介绍

koahub-simple-cms 是 koahub.js 简单的后台内容管理系统。

KoaHub.js:中文最佳实践 Node.js Web 快速开发框架。支持 Koa.js, Express.js 中间件。

//base controller, admin/controller/base.controller.js
module.exports = class extends koahub.controller {

    async _initialize() {
        console.log('base _initialize');
    }

    async isLogin() {
        console.log('base isLogin');
    }
}

//index controller, admin/controller/index.controller.js
const base = require('./base.controller');
module.exports = class extends base {

    async _initialize() {
        await super._initialize();
    }

    async index() {
        this.view(1);
    }

    async index2() {
        this.json(1, 2);
    }

    async index3() {
        await this.render('index');
    }
}

环境要求:Node.js >= 7.6.0

下载安装

// 下载demo
git clone https://github.com/koahubjs/koahub-simple-cms.git
// 进入项目
cd koahub-simple-cms
// 安装依赖
npm install
// 创建koahub数据库
// 导入根目录下的koahub.sql
// 配置数据库连接config/db.config.js
// 启动项目
npm start

浏览器访问

http://localhost:3000
// 默认后台账号密码 admin/admin

本文地址:https://codercto.com/soft/d/24040.html

实战移动互联网营销

实战移动互联网营销

江礼坤 / 机械工业出版社 / 2016-1 / 79.00

移动互联网的兴起,又为企业带来了新的挑战与机遇!越来越多的人,看到了移动互联网的价值与前景,但是在具体操作时,移动互联网具体如何玩?企业如何向移动互联网转型?如何通过移动互联网做营销?等等一系列问题,接踵而至。虽然目前相关的资料和文章很多,但是都过于零散,让人看完后,还是无从下手。而本书旨在成为移动互联网营销领域标准的工具书、参考书,为大家呈现一个系统、全面的移动互联网营销体系。让大家从思维模式到......一起来看看 《实战移动互联网营销》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具