A minimal Compojure web-app built for a presentation at Yow West 2015, and providing a basic UI for the Crypto Square solution found here.
Currently building on:
- Leiningen 2.8.1
- Docker 18.06
- Open JDK 10.0.2
- Docker Machine 0.14.0 (install instructions here)
- Docker Compose 1.17.2 (install instructions here)
To make deployment and startup of the application easier, the repo for the front-end (crypto-square) is configured to start all the services using Docker Compose.
To start all the services for the application, run:
docker-compose up
Note: the first time you run this command, it make take 20 minutes to download all the dependencies to run the services. This is a bootstrapping tax and subsequent invocations should be very quick.
To access the front-end of the application, you need to point your browser to port 3000 on the IP of the Docker VM. The easiest way to do this is often via a command like:
eval "open http://$(docker-machine ip):3000"
To test the app using clj-webdriver on port 4000, run:
lein midje
Note: this assumes you have the Chrome Driver installed at ~/bin/chromedriver
Copyright © 2015-2019