Skip to content

donut-party/minimal

Repository files navigation

A Minimal Donut App

This repo is used as the base for the single-page-app template. It makes template development easier by providing an actual environment for running an app and experimenting with donut changes.

dev

Create postgres dbs:

createdb donut_minimal_dev
createdb donut_minimal_test

After starting REPL, (dev)

Usage

FIXME: write usage documentation!

Invoke a library API function from the command-line:

$ clojure -X {{top/ns}}.{{main/ns}}/foo :a 1 :b '"two"'
{:a 1, :b "two"} "Hello, World!"

Run the project's tests (they'll fail until you edit them):

$ clojure -T:build test

Run the project's CI pipeline and build a JAR (this will fail until you edit the tests to pass):

$ clojure -T:build ci

This will produce an updated pom.xml file with synchronized dependencies inside the META-INF directory inside target/classes and the JAR in target. You can update the version (and SCM tag) information in generated pom.xml by updating build.clj.

Install it locally (requires the ci task be run first):

$ clojure -T:build install

Deploy it to Clojars -- needs CLOJARS_USERNAME and CLOJARS_PASSWORD environment variables (requires the ci task be run first):

$ clojure -T:build deploy

Your library will be deployed to {{group/id}}/{{artifact/id}} on clojars.org by default.

migrations

from dev:

(migratus/migrate (db-config))

starting Shadow

npm install
npx shadow-cljs watch dev

License

FIXME choose a license

Copyright © {{now/year}} {{developer}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published