Let's begin the setup of our project by creating a directory in the /Library/WebServer/Documents
folder, and name that directory verge
. This directory will contain all of the code for your project. For the sake of brevity, throughout this chapter, we'll call /Library/WebServer/Documents/verge
our working directory.
Inside our working directory, let's create four new folders for our source files to go into:
1. Create a folder called
classes
. This folder will contain the PHP class objects that we'll be using in this project2. Create a folder called
lib
. This folder will contain PHP libraries that our application relies on, which, in our case, will be theBones
framework and the class that will communicate with CouchDB.3. Create a folder called
public
. This folder will contain all of our public files, such as Cascading Style Sheets (CSS) , JavaScript, and images that our applications will need.4. Create a folder called
views
. This folder...