The system to help you learn Chinese words.
Implementation of Marilyn Method
You will need Leiningen 2.0 or above installed.
The configuration can be defined in .edn
file or as environment variables.
See all variables here src/clj/hanzihack/config.clj
.
Example Configuration, create dev-config.edn
at project root with this content
{:dev true
:port 3000
;; when :nrepl-port is set the application starts the nREPL server on load
:nrepl-port 7000
; set your dev database connection URL here
:database-url "postgresql://localhost/hanzihack_dev?user=postgres&password="}
Run the database migrations, run:
lein run migrate
Other supported commands are reset
, destroy
, pending
, and rollback
. See usage at migratus
To start a web server for the application, run:
lein run
To start CLJS web application, run:
lein shadow watch app
To start Clojure REPL, run:
lein repl
To start ClojureScript REPL, run:
lein shadown watch app
And connect to REPL via localhost:7002
then run (shadow/repl :app)
to connect with shadow-cljs nREPL
More information see doc here REPL Driven Development
Build Clojure backend server and ClojureScript Web Frontend UI, run:
lein uberjar
Copyright © 2019