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!
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.
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.
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 :))
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
You will need to have the following software installed on your machine:
To run all the server and client tests:
lein test
lein ring server-headless
Now visit localhost:3000 in your browser
The price conversion functions can be found in src-cljs/complico/conversion_funcs.cljs