后台管理系统 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

再看电商

再看电商

黄若 / 电子工业出版社 / 2014-7-1 / CNY 39.00

电商行业在中国经历了十年的高速增长。如果说十年前的网上购物是新鲜潮人的尝试的话,那么今天几亿网购人群的规模,零售市场18,000亿人民币的年交易额,正催生着一个改变人们生活习惯的全新行业。互联网正在从各个维度重新定义生产、品牌、娱乐、传播、消费,电商毫无疑问的在购物领域影响着越来越多人的生活。同时,这个行业连年亏损,顾客服务良莠不齐,也受到广泛关注。作者从地面零售到电子商务,从跨国公司高管到管理民......一起来看看 《再看电商》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具