Skip to content
benjreinhart edited this page Oct 17, 2011 · 2 revisions

Prerequisites

Getting Started - Configuring for Development

Clone the repository from redsquirrel/ipull. Once you do so, you should cd into the directory and run NPM install, to get the node modules installed to your app.

You'll also need to gem install foreman for Heroku.

Next, you'll need to set up your env.sh - for this, you should ask Dave for how his looks.

Running Specs

Once that's figured out, your best bet is to start by getting the specs running correctly. iPull uses Vows as its testing library.

The first step of getting your testing environment set up requires that redis is running on port 53535. To accomplish this, open the command line and type.

redis-server -     
port 53535    
^D    

Type everything exactly as is. The dash at the end of redis-server is meant to let redis know you're about to type in configuration, so press enter and on the next line type port 53535 then hit enter. On the next line hit CTRL-D which triggers EOF for the config options. Redis should now have started on port 53535.

Now that Redis is running on port 535353, the next step is to open another console, cd into the iPull directory and run vows by typing path/to/vows path/to/specs. For example, if you want to run the courses specs, and you're in the iPull directory, you would run this command:

node_modules/vows/bin/vows courses/spec/*

That should run all of the courses specs.

To eliminate some verbosity, you may want to create an alias for the path to vows.

Run the App Locally

To run the app locally, all you need to do is start redis (default port) by running redis-server. After that, initialize your env.sh. If you're in the iPull directory, this is as simple as ./env.sh. Your app should now be running on port 3000, unless configured otherwise.