brancusi / hack-box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hack Box

The basic box for hacking in clojure.

Prerequisites

You will need Leiningen 2.0 or above installed.

Development

  1. Create dev-config.edn in the root dir
  2. Add the following vars
;; WARNING
;; The dev-config.edn file is used for local environment variables, such as database credentials.
;; This file is listed in .gitignore and will be excluded from version control by Git.

{:dev true
 :port 5050
 ;; when :nrepl-port is set the application starts the nREPL server on load
 :nrepl-port 7070

 ;; secrets

 ;;  Hack Box used to authorize inbound requests
 :api-key "Hack Box API KEY"
 }

Running

Using Calva fire up the start repl and connect command for best repl experience

Otherwise start lein manually

lein run

Building

To build the uberjar

lein uberjar

To start the uberjar locally with env vars

java -Dconf=dev-config.edn -jar target/uberjar/hack-box.jar

About

License:MIT License


Languages

Language:Clojure 98.1%Language:Dockerfile 1.8%Language:Shell 0.1%