Install Homebrew
Install Redis
brew install redis
Install Leiningen
brew install leiningen
Install sassc
brew install sassc
Ensure Redis is running:
redis-cli PING
# PONG
Run this command on the project directory
lein figwheel
Visit localhost:3449
The URL shortener is configured with environment variables.
PORT
: default to 8000REDIS_URL
: Redis URI, default to 127.0.0.1SECRET_KEY
: private key for signing tokensSITE_HOST
: The host of the site, defaults to localhostSITE_SCHEME
: default to "http"
Create uberjar
lein uberjar
Set environment variables for config and run with
java $JVM_OPTS -cp target/encogio.jar clojure.main -m encogio.server