This post mainly about installing and running ‘Fauxton’ in windows environment. Fauxton is the new Web UI for CouchDB. For this post I will be using windows 8 (64bit).
Prerequisite for Fauxton
1. nodejs (Download from here)
2. npm (now npm comes with node)
3. CouchDB (Installation from binaries or sources. I will have post on installing couch DB from source on windows later)
4. git (git or tortoisegit tool)
To test Prerequisite open cmd of the windows and type below to check each of their versions. Here are mine.
node --version
npm --version
git --version
5. start CouchDB . Open up Futon to test it work fine. go to http://localhost:5984/_utils/
Here you see the
Now we have all the thing for ‘Fauxton’
Build ‘Fauxton’
1. Get git clone from ‘https://github.com/apache/couchdb-fauxton.git’
2. Go to the directory (cd couchdb-fauxton)
3. enter ‘npm install’ on cmd
4. Install the grunt-cli by typing
npm install -g grunt-cli
[NOTE]
There is small change to be done to run in windows.
https://github.com/apache/couchdb-fauxton/blob/master/Gruntfile.js#L410
'./node_modules/react-tools/bin/jsx -x jsx app/addons/ app/addons/',
update to
'node ./node_modules/react-tools/bin/jsx -x jsx app/addons/ app/addons/',
[Note]
You can try 'uname -a' to find OS information and deped on it we can switch the code.
Dev Server
As I am looking for some development in here. I will start dev server and it is the easiest way to use Fauxton. Type
grunt dev
got tohttp://localhost:8000/#/_all_dbs
Here you have nice way interact with CouchDB and also I you can find rest all over in here. The work on the Fauxton implementation is going on and making good progress in preparation for CouchDB 2.0. It has just been merged in the new Fauxton sidebar redesign[1,2].
such http://localhost:8000/_users.etc.. Here is API for call in UI
Enjoy the cochDB with new UI Fauxton
No comments:
Post a Comment