A starter leiningen and boot project for Dunaj
-
Oracle JDK 8
-
Leiningen or Boot (2.1.3 or later. Custom built Boot for linux is included until 2.1.3 is released)
-
Git
-
Clone this repository with
git clone https://github.com/dunaj-project/dunaj-starter.git
-
Run REPL with
lein repl
or./boot repl
-
In REPL, eval
(dunaj!)
to start working with Dunaj
To use Dunaj in your sources, use :api
ns declaration:
(ns dunaj-starter.core
"See http://www.dunaj.org for documentation and examples."
(:api dunaj))
(defn bar :- String
[s :- String]
(str (print "Hello %s!" s)))
(defn foo :- nil
[s :- String]
(println! (bar s))
nil)
(foo "World")
See Dunaj homepage for documentation and examples.
Copyright © 2013, 2015, Jozef Wagner.
The use and distribution terms for this software are covered by the [Eclipse Public License 1.0](http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by the terms of this license.
You must not remove this notice, or any other, from this software.