Reputation: 22410
Beginner question.
My goal is to add documents to my CouchDB database on a remote server.
Is this the a good way?
If yes, how to do #2 on Windows?
Upvotes: 2
Views: 509
Reputation: 73722
I suggest using your browser, and use the Futon web app, which all CouchDB servers support. Just go to /_utils/
in your browser and you can get started adding and modifying documents.
Once you are comfortable, I suggest the curl
tool, however keep in mind that Windows is a little different from the examples.
In Linux and Mac, curl looks like this
curl -X POST http://localhost:5984/db/ -d '{"_id":"something"}'
In Windows, you cannot use the single-quote:
curl -X POST http://localhost:5984/db/ -d "{\"_id\":\"something\"}"
Upvotes: 2