From 302bf136136a5e9d4b2f63be51b031b9f63874d6 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 15 Apr 2025 14:45:09 +0100 Subject: [PATCH] Extend setup to support Fluxon UI installation --- README.md | 5 +++++ mise.toml | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7efc76c4..b34acd7e 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,11 @@ The project is managed and configured via [mise-en-place](https://mise.jdx.dev): - `mise install` will pull the correct Erlang, Elixir and Node.js versions - `mise run dev:setup` will setup dependencies and database structure +> [!IMPORTANT] +> The project uses [Fluxon UI](https://fluxonui.com/), so it requires a valid +> set of credentials. See the `env` section in `mise.toml` for the required +> environment variables. + ## Environment configuration The application requires the following environment variables: diff --git a/mise.toml b/mise.toml index 1ab92c7e..328956ec 100644 --- a/mise.toml +++ b/mise.toml @@ -2,6 +2,8 @@ LAST_FM_USER = 'change-me' LAST_FM_API_KEY = 'change-me' OPENAI_KEY = 'change-me' +FLUXON_KEY_FINGERPRINT = 'change-me' +FLUXON_LICENSE_KEY = 'change-me' [tools] hurl = 'latest' @@ -66,8 +68,16 @@ description = 'Update dependencies' # SETUP +[tasks.fluxon-add-repo] +description = "Add the fluxon repo" +run = """ +mix hex.repo add fluxon https://repo.fluxonui.com \ + --fetch-public-key $FLUXON_KEY_FINGERPRINT \ + --auth-key $FLUXON_LICENSE_KEY +""" + [tasks."dev:setup"] -depends = ['npm-install'] +depends = ['npm-install', 'fluxon-add-repo'] description = 'Install dependencies and setup the database' run = ['mix setup']