https://github.com/bzg/choices
Build SPAs to let users answer questions from a decision tree
https://github.com/bzg/choices
decision-tree flowchart spa
Last synced: 10 months ago
JSON representation
Build SPAs to let users answer questions from a decision tree
- Host: GitHub
- URL: https://github.com/bzg/choices
- Owner: bzg
- License: epl-2.0
- Created: 2019-06-20T10:22:52.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-26T10:13:37.000Z (over 1 year ago)
- Last Synced: 2025-04-03T17:52:55.561Z (about 1 year ago)
- Topics: decision-tree, flowchart, spa
- Language: Clojure
- Homepage:
- Size: 5.84 MB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- Funding: .github/FUNDING.yml
- License: LICENSE
- Publiccode: publiccode.yml
Awesome Lists containing this project
README
#+title: 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.
[[file:choices.png]]
* Build
1. Copy =config-example.yml= to =config.yml= and adapt it to your needs
3. Test your configuration with =clj -M:test=
4. Compile with =clj -M:js=
5. 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: [[https://bulma.io/][bulma]], the default, [[https://jenil.github.io/chota/][chota]] and [[https://www.systeme-de-design.gouv.fr/][dsfr]].
*Don't use the dsfr theme unless you are [[https://www.systeme-de-design.gouv.fr/utilisation-et-organisation/perimetre-d-application][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:
- https://guide-juridique-logiciel-libre.etalab.gouv.fr/
- https://guide-juridique-open-data.etalab.gouv.fr/
- https://publiccodenet.github.io/assessment-eligibility/
* Contribute
Contributions are welcome. You can send feedback and patches to
[[mailto:~bzg/dev@lists.sr.ht][~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 [[https://www.clojuriststogether.org][clojuriststogether.org]].
* License
2019-2025 Bastien Guerry
This application is published under the [[file:LICENSE][EPL 2.0 license]], except for
the fonts in =resources/public/fonts=.