Skip to content

jameskirk36/complico

Repository files navigation

Build Status

complico

This is the code behind Complico - a site that brings to life the fictional company from the Peter Serafinowicz show. Making prices complicated for you - on your favourite sites!

Overview

This web app is written in Clojure/Clojurescript - Clojure and the ring web framework on the server side and Clojurescript for converting prices in the browser.

Setting up development environment

The easiest way to setup the environment is to use vagrant. This will create an isolated linux vm and install the required dependancies for you. But you don't have to use vagrant - see the manual setup section below.

Setting up with Vagrant

Prerequisites

You will need to have the following software installed on your development machine:

  • Virtualbox
  • Vagrant

I suggest you use your native/favourite package manager to install these (for windows see chocolately, Mac OSX: homebrew, linux: apt-get :))

Setup

Open a terminal or command prompt and change directory to the root directory of your working copy of this repository.

Then run the command:

vagrant up
vagrant ssh
cd /vagrant

Setting up manually

Prerequisites

You will need to have the following software installed on your machine:

Running the tests

To run all the server and client tests:

lein test

Running the server

lein ring server-headless

Now visit localhost:3000 in your browser

Price conversions

The price conversion functions can be found in src-cljs/complico/conversion_funcs.cljs