Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (7.09 MB, 242 trang )
• python (2.6)
• GNU C++ Compiler
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:
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.
I used a script from the Node.js git site (https://gist.github.com/579814) called nodeand-npm-in-30-seconds.sh:
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
make install # ok, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
For the record, despite the script’s name, it takes more than 30 seconds to build Node.js.
I also installed the following packages using npm:
npm install express
npm install ejs
npm install cradle
I relied on a handful of cloud services throughout the writing, coding, and testing of
the contents of this book. I did this primarily as an experiment to see just how easily I
would be able to complete tasks while relying only on the cloud. I must say that I was
pleasantly surprised by the sophistication of available services and their overall reliability.
The following services were used in the creation of the book:
218 | Appendix H: Source Code, Software, and Installation Notes
I used GitHub’s site to host several Git repositories, share code and examples with
others, and as a staging area for my online editing (see the next item).
This development-as-a-service offering allowed me to grab content from my GitHub repos, edit, debug, and deploy implementations all without the need for a
full-featured desktop or laptop machine. I was even able to deliver extended presentations and participate in coding sessions all from my Chromebook device connected to Cloud9’s servers.
Joyent Node hosting
I used Joyent’s Node hosting services to run my sample applications on publicly
available servers (see “Source Code” on page 217 for more details on how to access
publicly available content related to this book). I was also able to deploy my code
directly from the Cloud9 IDE to Joyent’s servers in a single step. This made for a
very enjoyable working experience from start to finish.
Cloudant CouchDB hosting
I used Cloudant’s servers to host my CouchDB data stores on a publicly available
server. Cloudant’s support includes access to the command line (via CURL) as well
as support for the Futon UI to manage data stores. I was able to easily script data
store creation and population directly from my workstation, too.
I used several machines throughout the writing of this book:
Meerkat Ion NetTop
HP HDX X16-1040US Premium Notebook PC
HP Mini Notebook 1030NR Notebook PC
The software listed below was used to write the book. Since I often switch between
physical machines and used two different operating systems in the process (Ubuntu
and Windows), the products selected for the task all have installations for multiple
• XMLMind Editor (for writing the book text)
• gedit (for editing code the examples)
• RapidSVN (Source Control for the book)
Finally lots of notes, research, and initial drafts were written up (and shared) using
Authoring | 219
About the Author
Mike Amundsen, an internationally known author and lecturer, travels throughout
the United States and Europe consulting and speaking on a wide range of topics including distributed network architecture, web application development, cloud computing, and other subjects. His recent work focuses on the role hypermedia plays in
creating and maintaining applications that can successfully evolve over time. He has
more than a dozen books to his credit and recently contributed to the RESTful Web
Services Cookbook by Subbu Allamaraju. When he is not working, Mike enjoys spending time with his family in Kentucky, USA.