Using npm
- Install nodejs and mysql
-
Create a new directory for your cms and navigate to it (in unix):
$ mkdir codysites $ cd codysites
-
Install cody and its dependencies
$ npm install cody
-
Set up a new web site using the guided scaffolding
$ node ./node_modules/cody/bin/create_site.js Creating project in /Users/johan/codysites/ 1) Enter projectname: firstApp Note: also using firstApp 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 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: xxxxx 3) Enter site database user: firstUser 4) Enter site database password: firstPW 5) Enter hostname for site: first 6) Enter a location for storing documents: /usr/local/data/first [ windows users could use something like C:\documents\first ] [ *nix users without write permission in /usr/local for example: /home/billgates/cody/data ] mkdir /Users/johan/codysites/firstApp/static mkdir /Users/johan/codysites/firstApp/static/css mkdir /Users/johan/codysites/firstApp/static/images mkdir /Users/johan/codysites/firstApp/static/js mkdir /Users/johan/codysites/firstApp/views created /usr/local/data/first/ created /usr/local/data/first/images created /usr/local/data/first/files --- Site 'firstApp' has been prepared. Please create DNS entries, or add to /etc/hosts: 127.0.0.1 first Also check index.js and config.json to fine-tune extra parameters, encryption key, ... --- Start your site using: $ forever start firstApp.js or $ node firstApp.js
-
Go to "http://firstApp:3001" to see your current site and go to "http://firstApp:3001/en/dashboard" to see the CMS of the site.
the default users are: 'super', 'admin', 'test' and 'user' which all have password 'empty'