Confirmed users
1,927
edits
mNo edit summary |
(Correction: replicating the db gives you the entire app) |
||
| Line 59: | Line 59: | ||
At this point, you can replicate the existing database. Go to http://127.0.0.1:5984/_utils/index.html and hit the "Create Database" button at the top of the main panel. Use the name "orange_factor". Then go to "Replicator" in the right side bar. Choose to replicate changes from remote database http://jmaher.couchone.com/orange_factor to local database orange_factor. After a minute or two, you should see a status message. Go back to "Overview" and you should see a number of documents listed for orange_factor. | At this point, you can replicate the existing database. Go to http://127.0.0.1:5984/_utils/index.html and hit the "Create Database" button at the top of the main panel. Use the name "orange_factor". Then go to "Replicator" in the right side bar. Choose to replicate changes from remote database http://jmaher.couchone.com/orange_factor to local database orange_factor. After a minute or two, you should see a status message. Go back to "Overview" and you should see a number of documents listed for orange_factor. | ||
At this point, you have a full local installation of orange factor, which you can find at http://127.0.0.1:5984/orange_factor/_design/woo/orange.html. However, since everything for a couch db (JavaScript files, HTML files, etc.) is stored inside a single file, you will have to get the application code separately if you want to work on the app itself. | |||
You will need to install the python package couchapp. You'll need setuptools installed if you don't already have it: | |||
sudo apt-get install python-setuptools | sudo apt-get install python-setuptools | ||
| Line 73: | Line 75: | ||
couchapp push orange_factor | couchapp push orange_factor | ||
It'll print out a message about visiting your new app, but the real page will be http://127.0.0.1:5984/orange_factor/_design/woo/orange.html. | It'll print out a message about visiting your new app, but the real page will be still be http://127.0.0.1:5984/orange_factor/_design/woo/orange.html. From this point on, you can run "couchapp push orange_factor" from the woo directory to push local edits to the database. | ||