5 Star 6 Fork 3

翌之南 / cody

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.82 KB
一键复制 编辑 原始数据 按行查看 历史
翌之南 提交于 2016-05-25 10:24 . Update README.md

#cody 基于开源Cody的一个CMS系统。 目标:结合bootstrap做成一个生成移动端页面的CMS系统。

Features

  • Node.js CMS
  • Easy-to-use graphical interface + wysiwyg (what you see is what you get) editor that allows non-programmers to manage the site's content, users, files, forms and images.
  • Tree structured GUI to manage the structure of the site and the editable content by using templates and drag-and-drop.
  • Works seamless with your existing node.js code.

开始cody

By following these steps you will be running your own CMS system in no time. If any of the steps do not work for you, please report this as an issue on this github repository and we will look into it as soon as possible!

  • 安装:nodejs(http://nodejs.org/download/) 和 mysql(http://dev.mysql.com/downloads/mysql/)

  • 为你的CMS创建一个目录并且cd到创建的目录下:

    
    
  • 创建cody和他的依赖模块包

          复制package.json到该目录下
      npm install --save
          cd到node_modules目录下
  • clone代码到该目录下

      $ git clone git@git.oschina.net:dugulao3/cody.git cody

*注意creat_site.js中的这句:var rootwd = "f:\CodyCMS\win\";对应你自己的目录。

  • 使用如下向导创建一个新的Web工程

      $ node ./node_modules/cody/bin/create_site
      
      Creating cody web tree in current directory
      1) Enter sitename: mysite
      Note: also using my site as database name.
      Note: by default the mysql root user has no password so you can just hit enter, if you forgot the root password see http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
      2) Enter root password for mysql so we can create a new database and user: 
      3) Enter site database user: mysitename
      4) Enter site database password: mysitepassword
      5) Enter hostname for site: mysite.local (or localhost)
      Site mysite has been prepared.
      
      Please create DNS entries, or add to /etc/hosts:
      127.0.0.1     mysite.local
      
      Also check index.js and config.json to fine-tune extra parameters, encryption key, ...
      
      Start your site using:
      forever start mysite.js
      or
      node mysite.js
  • Add a DNS entry for given hostname, e.g.

      $ sudo bash -c 'echo 127.0.0.1 mysite.local >> /etc/hosts'
  • Run the server

      $ node mysite.js

    or if you want to automatically restart the server on changes

      $ forever start mysite.js
  • Go to "http://mysite.local:3001" to see your current site and go to "http://mysite.local:3001/en/dashboard" to see the CMS of the site.

    the default users are: 'super', 'admin', 'test' and 'user' which all have password 'empty' you can ofcourse use "http://localhost:3001" too.

JavaScript
1
https://gitee.com/dugulao3/cody.git
git@gitee.com:dugulao3/cody.git
dugulao3
cody
cody
master

搜索帮助