theandrew168 / snippetbox

Alex Edwards' snippetbox application in Clojure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Alex Edwards' snippetbox application in Clojure

License:MIT License


Languages

Language:Clojure 79.2%Language:CSS 19.1%Language:Makefile 0.9%Language:JavaScript 0.8%