#cody 基于开源Cody的一个CMS系统。 目标:结合bootstrap做成一个生成移动端页面的CMS系统。
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. Open source ecosystem
2. Collaboration, People, Software
3. Evaluation model