/snippetbox

Alex Edwards' snippetbox application in Clojure

Primary LanguageClojureMIT LicenseMIT

snippetbox

Alex Edwards' snippetbox application in Clojure

Setup

This project depends on the Clojure programming language. I like to use a POSIX-compatible Makefile to facilitate the various project operations but traditional clj commands will work just as well.

Building

To build the application into a standalone JAR, run:

make

Local Development

Services

This project depends on various services. To develop locally, you'll need to run these services locally somehow or another. I find Docker to be a nice tool for this but you can do whatever works best.

The following command starts the necessary containers:

docker compose up -d

These containers can be stopped via:

docker compose down

Running

To start the web server:

make web

To apply any pending database migrations:

make migrate

Testing

Unit and integration tests can be ran after starting the aforementioned services:

make test