# cody **Repository Path**: dugulao3/cody ## Basic Information - **Project Name**: cody - **Description**: 开源cody CMS系统汉化后的windows版本,处于修改阶段,放上来大家共同学习。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 3 - **Created**: 2016-05-25 - **Last Updated**: 2025-08-07 ## Categories & Tags **Categories**: cms **Tags**: None ## README #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到创建的目录下: ```cmd ``` * 创建cody和他的依赖模块包 ```cmd 复制package.json到该目录下 npm install --save cd到node_modules目录下 ``` * clone代码到该目录下 ```cmd $ git clone git@git.oschina.net:dugulao3/cody.git cody ``` *注意creat_site.js中的这句:var rootwd = "f:\\CodyCMS\\win\\";对应你自己的目录。 * 使用如下向导创建一个新的Web工程 ```bash $ 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. ```bash $ sudo bash -c 'echo 127.0.0.1 mysite.local >> /etc/hosts' ``` * Run the server ```bash $ node mysite.js ``` or if you want to automatically restart the server on changes ```bash $ 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.