viernes, octubre 22, 2010

[EN] CouchApp I: setting up the environment

we will start our couchapp setting up the environment, for that we will install couchdb and couchapp

# install couchdb and python modules to install other modules
sudo apt-get install python-setuptools couchdb
# download pip
curl -O
sudo python
sudo easy_install pip
# install couchapp
sudo pip install couchapp

now that we have couchapp we will generate our project, we will call it "datos"

couchapp generate datos
cd datos
# edit the couchapprc file
vim .couchapprc

the .couchapprc file contains the targets where we can deploy our application, let's define the default target

{"env": {
  "default": {
   "db": "http://localhost:5984/datos"

save the content and run

couchapp push

it should display something like the following:

2010-10-22 10:21:10 [INFO] Visit your CouchApp here:

now go to that site with your browser, you should see a demo page.

No hay comentarios.:


Archivo del Blog