choestelus / hanzihack

website

Home Page:http://hanzihack.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HanziHack

Build Status

The system to help you learn Chinese words.
Implementation of Marilyn Method

Prerequisites

You will need Leiningen 2.0 or above installed.

Configuration

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="}

Running

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

Development

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

Build Clojure backend server and ClojureScript Web Frontend UI, run:

lein uberjar

License

Copyright © 2019

About

website

http://hanzihack.com


Languages

Language:HTML 59.8%Language:Clojure 33.0%Language:TSQL 6.1%Language:CSS 0.9%Language:Dockerfile 0.2%Language:Shell 0.1%