Appendix I. Source Code, Software, and Installation Notes

Below are notes on the source code contained in this book and the software used in its preparation including some hints on installing CouchDB and Node.js on Ubuntu.

Source Code

A number of source code artifacts were produced in the writing of this book. These include:

  • HTML5 markup

  • CSS documents

  • Client-side JavaScript files

  • Server-side JavaScript for Node.js

  • JavaScript for CouchDB

  • Bash scripts for installing the databases

All of these documents, along with any additional materials related to the book, can be found by visiting the Hypermedia page at amundsen.com.

Prerequisites

The items below were installed to prep Ubuntu for CouchDB and Node.js.

These were installed via the command line:

sudo apt-get install curl
sudo apt-get install git
sudo apt-get pkg-config

The following were installed using Ubuntu’s Software Center:

  • python (2.6)

  • GNU C++ Compiler

  • libssl-dev

CouchDB

Installing CouchDB from the command line was very easy:

sudo apt-get install couchdb

To test the install, you can bring up your browser and open the Futon helper app:

http://localhost:5984/_utils/

You can run the CouchDB Test Suite from Futon if you wish. In my case, all tests passed (using FF3.6), but a few scripts run long enough that FF popped up a dialog a few times asking if I wanted to kill the script. I always answered “No” and let the tests continue.

Node.js

I used a script from the Node.js git site (https://gist.github.com/579814) called node-and-npm-in-30-seconds.sh:

echo 'export ...

Get Building Hypermedia APIs with HTML5 and Node now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.