Skip to content
/ choices Public template

Build SPAs to let users answer questions from a decision tree

License

Notifications You must be signed in to change notification settings

bzg/choices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

81a55a7 · Dec 26, 2024
Dec 7, 2024
Aug 11, 2023
Aug 12, 2024
Nov 1, 2023
Dec 26, 2024
May 12, 2019
Dec 26, 2024
Jun 20, 2019
Nov 1, 2023
Dec 23, 2024
Jan 14, 2020
May 29, 2019
Jun 24, 2019
Jun 24, 2019
Nov 1, 2023
Aug 11, 2023

Repository files navigation

Choices: build SPA to let users explore a (decision-)tree

Choices

Choices lets you build a single page application to let users traverse a set of related options and get feedback from their choices.

choices.png

Build

  1. Copy config-example.yml to config.yml and adapt it to your needs
  2. Test your configuration with clj -M:test
  3. Compile with clj -M:js
  4. Your static files are ready in resources/public/

Develop

  1. Copy config-example.yml to config.yml and adapt it to your needs
  2. Compile with clj -M:fig
  3. Check your web browser on http://localhost:9500

Themes

Choices come with three themes: bulma, the default, chota and dsfr.

Don’t use the dsfr theme unless you are authorized to.

To set chota as the theme, run clj -X:set :theme chota.

This will update config.yml and resources/public/index.html to use chota as the theme when generating the static website.

Usage

Here are some examples where Choices is used:

Contribute

Contributions are welcome. You can send feedback and patches to ~bzg/dev@lists.sr.ht. For patches, please configure your local copy of the repository to add a prefix to the subject line of your emails:

~$ git config format.subjectPrefix 'PATCH choices'

Support the Clojure(script) ecosystem

If you like Clojure(script), please consider supporting maintainers by donating to clojuriststogether.org.

License

2019-2025 Bastien Guerry

This application is published under the EPL 2.0 license, except for the fonts in resources/public/fonts.