Skip to content

Getting Started

Chris Zheng edited this page Jul 7, 2026 · 1 revision

Getting Started

Prerequisites

Install:

  • Java 21
  • Leiningen
  • Git

Optional subsystems may also require Node.js, Python, R, Docker, PostgreSQL, OpenResty, native compilers, or browser tooling.

Clone and install

git clone git@github.com:zcaudate-xyz/foundation-base.git
cd foundation-base
lein deps
lein install
lein repl

The current dependency version is declared in project.clj.

Try a standard-library helper

(require '[std.lib :as h])

(h/time-ms)
(h/pl "Hello Foundation!")

Emit JavaScript

(require '[hara.lang :as l])

(l/emit-as :js '(+ 1 2 3))
;; => "1 + 2 + 3"

Run one test namespace

lein test :only std.lib.collection-test

Foundation Base uses code.test, not clojure.test. Targeted test runs are recommended because the full suite includes optional runtimes and services.

Choose the next page

See the full GETTING_STARTED.md for more detail.

Clone this wiki locally