#Address Book
Simple address book with persistence.
##Demo
###Development
lein clean
lein with-profile dev figwheel app
to run figwheellein with-profile dev run
to run server- then visit
http://localhost:8080
- open clojure repl with
lein with-profile +dev repl
###Production
lein clean
lein uberjar
- run
java -jar target/address-book.jar
###Testing
- Prerequisite: PhantomJS
lein clean
lein with-profile test spec
to run Clojure testslein with-profile test cljsbuild test
to run ClojureScript tests
- Run the following in REPL with a proper name for creating a new migration
(require '[migratus.core :as migratus])
(require '[address-book.db :as db])
(migratus/create db/migratus-config "<migration-name>")
- Latest migrations will be automatically run when the server restarts
Set environment variables to configure the following,
- Server
--port
PORT
- DB
-- user :
DB_USER
-- password :DB_PASSWORD
-- host :DB_HOST
-- port :DB_PORT
-- database :DATABASE