Description
Many thanks Patrick,
The download I used appears to have installed the latest couchDB
- http://wiki.apache.org/couchdb/Windows_binary_installer
- http://people.apache.org/~mhammond/dist/0.11.0/setup-couchdb-0.11.0.=
exe
Which installs couchDB as a service even. It installs it's own (older
version) of erlang. I'll look into using the most recent version
later.
Thanks for pointing me to the "Getting Started" chapters - -they work
fine with CURL and I put a few ruby examples into play too.
The main thing for Windows people is to take heart that the windows
installer seems to be pretty handy to get you working, and try this
all out.
Cheers,
Will
On 12 June 2010 02:39, Patrick Hausmann patrick.hausmann@uni-bremen.de wr=
ote:
Hi Will,
well, I'am really not so familiar with couchDB, but this probably should
work:
- I think the link "http://wiki.apache.org/couchdb/CouchIn15Minutes" is =
a
little bit outdated (2009-09-20). But maybe I am wrong.
You should read chapter 3 and 4 -> http://books.couchdb.org/relax/- I am using curl (http://curl.haxx.se/), not Microsoft telnet.
- In my example you have to use two files, to PUT a document in couchDB:
=A0 =A0 =A0 =A0 A. test.bat
=A0 =A0 =A0 =A0 B. world.json####### =A0test.bat
REM CouchDB Status
curl http://127.0.0.1:5984/REM Delete the 'example' Database - you have to uncomment this line
REM when runing the script a second time
REM curl -vX DELETE http://127.0.0.1:5984/exampleREM Create the 'example' Database
curl -X PUT http://127.0.0.1:5984/exampleREM Add a document to the 'example' database
curl -X POST http://127.0.0.1:5984/example/ -d @world.json####### world.json
{"greetings": "Hello, World!"}
####### world.json
- Because I don't have 'curl' in my path, both files are in
'c:\tools\curl'.When I run the script I get:
C:\tools\curl>test.bat
C:\tools\curl>REM CouchDB Status
C:\tools\curl>curl http://127.0.0.1:5984/
{"couchdb":"Welcome","version":"0.10.0"}C:\tools\curl>REM Delete the 'example'- Database
C:\tools\curl>curl -vX DELETE http://127.0.0.1:5984/example
- About to connect() to 127.0.0.1 port 5984 (#0)
- =A0 Trying 127.0.0.1... connected
- Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
< HTTP/1.1 200 OKDELETE /example HTTP/1.1
User-Agent: curl/7.20.0 (i386-pc-win32) libcurl/7.20.0 OpenSSL/0.9.8l
zlib/1.2.3
Host: 127.0.0.1:5984
Accept: /
< Server: CouchDB/0.10.0 (Erlang OTP/R13B)
< Date: Fri, 11 Jun 2010 16:29:02 GMT
< Content-Type: text/plain;charset=3Dutf-8
< Content-Length: 12
< Cache-Control: must-revalidate
<
{"ok":true}- Connection #0 to host 127.0.0.1 left intact
- Closing connection #0
C:\tools\curl>REM Create a Database
C:\tools\curl>curl -X PUT http://127.0.0.1:5984/example
{"ok":true}C:\tools\curl>REM Add a document to the example Database
C:\tools\curl>curl -X POST http://127.0.0.1:5984/example/ -d @world.json
{"ok":true,"id":"2c355d185c8bab1714387997cfda738a","rev":"1-9d2672b4a05ef=
f564f024f4732ef136a"}HTH and good luck
PatrickAm 11.06.2010 17:44, schrieb will:
Hi Patrick,
I realise you may not be the 'right' person to ask here. =A0I have
installed the "Windows installer" for couchDB -- and it all looks
fine. 'But' ...I can't seem to connect to the couchDB server with telnet on Windows,
per:=A0 http://wiki.apache.org/couchdb/CouchIn15Minutes
=A0 =A0 "Hello, World!" (of course)
* Now for "Hello, World!" =A0*
=A0 =A01. Couch is RESTful so you'll need a HTTP client. These
instructions are for telnet (those who dislike the command line could
use futon or, if you're using Mac OS X, HTTPClient).
=A0 =A02. Type: $ telnet localhost 5984
=A0 =A03. Response:=A0 =A0 =A0 Trying 127.0.0.1...
=A0 =A0 =A0 Connected to localhost.
=A0 =A0 =A0 Escape character is '^]'.Can you suggest what needs doing? =A0I'm using the microsoft telnet, and
the result is very unenlightening -- And nothing appears in the
couchDB log (either).=A0 =A0 =A0Microsoft Telnet> =A0o 127.0.0.1 5984
=A0 =A0 =A0Connecting To 127.0.0.1...=A0 =A0 =A0Connection to host lost.
Please note that's not, 'timeout' or 'fail' but 'connection lost'.
I was wondering if I need to enable something for this Windows build?
Many thanks ....
=A0 =A0Will
On Apr 9, 6:46 pm, Patrick Hausmannc...@uni-bremen.de =A0wrote:
Fromhttp://books.couchdb.org/relax/appendix/installing-on-windows
CouchDB does not officially supportWindows. CouchDB intends to provide
an officialWindowsinstaller at some point in the future, so this may c=
hange.
At the time of going to print, the only unofficial binary installer.The link to the unofficial binary installer should point
tohttp://people.apache.org/~mhammond/dist/, as in the book.
--=20
aloha,
w/
=BA http://mbimarketing.wordpress.com
=BA http://adroit-process.blogspot.com
token=40859aae6b9645cadaaa9f68d22b1800login=janl