Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
D Web Development

You're reading from   D Web Development Leverage the power of D and the vibe.d framework to develop web applications that are incredibly fast

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher Packt
ISBN-13 9781785288890
Length 196 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Kai Nacke Kai Nacke
Author Profile Icon Kai Nacke
Kai Nacke
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Your First Web Application FREE CHAPTER 2. Using Templates for Your Web Pages 3. Get Interactive – Forms and Flow Control 4. Easy Forms with the Web Framework 5. Accessing a Database 6. Using the REST Interface 7. The vibe.d Internals 8. Using vibe.d with a GUI Client 9. Power Your Application with vibe.d Extensions Index

Accessing CouchDB


The NoteStore service and NoteApp client from the previous sections were written in D. Therefore, there was no problem in using the service. However, the main idea of REST is to be independent of the service implementation. This is best shown by using a different service.

CouchDB is another document-based database. It is written in the Erlang programming language and offers a REST interface that you can use to implement NoteStore.

Installing CouchDB

The website of CouchDB is http://couchdb.apache.org/. Here, you can find detailed installation instructions and precompiled binaries for OS X and Windows. Building from the source requires the Erlang programming language. For a quick start, you can use the version of your distribution:

  • On Ubuntu/Debian, type the following to install CouchDB:

    $ sudo apt-get install couchdb
    
  • On Fedora 21 or earlier, you can install CouchDB with the following:

    $ sudo yum install couchdb
    
  • On Fedora 22, you type as follows:

    $ sudo dnf install couchdb...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image