-
Book Overview & Buying
-
Table Of Contents
CouchDB and PHP Web Development Beginner's Guide
By :
We created a database using curl in Chapter 3, Getting Started with CouchDB and Futon. Let's quickly recap how to use a PUT request to create a new database in CouchDB.
1. Create a new database by running the following command in Terminal. Make sure to replace username and password with the database administrator user that you created in Chapter 3.
curl -X PUT username:password@localhost:5984/verge
2. Terminal will respond with the following output:
{"ok":true}
We used Terminal to trigger a PUT request, using curl, to create a database through CouchDB's RESTful JSON API. We passed verge as the name of the database at the end of CouchDB's root URL. When the database was successfully created, we received a message that everything went okay.
Change the font size
Change margin width
Change background colour