Skip to content
A personal website build with Re-Frame (Clojure/ClojureScript)
Clojure HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
env
resources/public
src
test/clj/homepage
.gitignore
Dockerfile.dev
Dockerfile.prod
Procfile
README.md
project.clj

README.md

homepage

A re-frame application generally used for small tinkering, hosted at www.roryhow.com

There are no guarantees for this code to work; I will most likely break this repo (and the corresponding hosted site) from time to time.

Development Mode

Start Cider from Emacs:

Navigate to a clojurescript file and start a figwheel REPL with cider-jack-in-clojurescript or (C-c M-J)

You can also use cider-jack-in-clj&cljs to fire up both Clojure and Clojurescript REPLs

Compile css:

Compile css file once.

lein garden once

Automatically recompile css file on change.

lein garden auto

CSS also gets automatically built when running lein build and recompiled on change with lein dev.

Run application:

lein dev

Figwheel will automatically push cljs changes to the browser.

Wait a bit, then browse to http://localhost:3449.

Production Build

lein clean
lein with-profile prod uberjar

That should compile the clojurescript code first, and then create the standalone jar.

When you run the jar you can set the port the ring server will use by setting the environment variable PORT. If it's not set, it will run on port 3000 by default.

To deploy to heroku, first create your app:

heroku create

Then deploy the application:

git push heroku master

To compile clojurescript to javascript:

lein build
You can’t perform that action at this time.