linksgo2011
V2EX  ›  Node.js

小型 nodejs CMS 系统共同学习

  •  2
     
  •   linksgo2011 · Jan 3, 2016 · 5181 views
    This topic created in 3821 days ago, the information mentioned may be changed or developed.

    介绍
    预览 https://github.com/linksgo2011/nodecms
    学习 nodejs 入门项目,数据库使用的 MySQL 。
    使用 nodejs 开发定位于企业网站的简易 CMS ,目标为容易拓展、部署,前端开发者容易使用的 CMS 系统。

    特性
    使用 nodejs 开发,为前端开发者准备的,前后端都使用 JS ,做个企业网站就很容易了
    简单(其实是懒),主要是首页、根据数据模型的列表页、详情页,单页,满足一般企业站点需要
    容易拓展,功能不满足可以容易拓展
    多模板
    支持不同模型列表、详情指定模板,更加灵活嵌入单页
    安装
    使用 克隆或直接下载项目到本地

    git clone https://github.com/linksgo2011/nodecms.git
    在根目录下使用命令行执行下面代码,安装 nodejs 依赖的模块

    npm install
    在根目录下找到 nodecms.sql 文件,导入到你的 MySQL 数据库中

    修改 config/connections.js 文件,根据上一步的数据库信息,修改数据库连接

    // 修改数据库连接地址
    someMysqlServer: {
    host: 'localhost',
    user: 'root',
    password: '',
    database: 'nodecms'
    },
    启动项目

    node app.js
    预览
    demo 地址 http://nodecms.duapp.com/

    后台地址 /admin/user/login

    默认用户 admin admin

    贡献代码
    [email protected] https://github.com/linksgo2011/nodecms

    6 replies    2016-01-06 16:59:37 +08:00
    sinux
        1
    sinux  
       Jan 3, 2016
    贡献代码还要发邮件,而不是直接 pull request......
    Slienc7
        2
    Slienc7  
       Jan 3, 2016
    @sinux 他不是给了 git repo 的地址么
    sinux
        3
    sinux  
       Jan 3, 2016
    @xgowex 但是 readme 的贡献下面留了一个 QQ 邮箱
    linksgo2011
        4
    linksgo2011  
    OP
       Jan 3, 2016
    @sinux 有疑问可以询问
    sinux
        5
    sinux  
       Jan 3, 2016
    @linksgo2011 感觉前端非常棒,一看作者,果然就是前端
    leefly
        6
    leefly  
       Jan 6, 2016
    551 了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2660 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 04:43 · PVG 12:43 · LAX 21:43 · JFK 00:43
    ♥ Do have faith in what you're doing.