2022-09-06 17:22:23 +00:00
|
|
|
<p align="center">
|
2024-06-06 07:12:34 +00:00
|
|
|
<i>🚀 <a href="https://keycloakify.dev">Keycloakify</a> v10 starter 🚀</i>
|
2023-03-17 14:05:28 +00:00
|
|
|
<br/>
|
|
|
|
<br/>
|
2022-09-06 17:22:23 +00:00
|
|
|
</p>
|
|
|
|
|
2024-06-16 16:08:59 +00:00
|
|
|
This starter is based on Vite. There is also [a Webpack based starter](https://github.com/keycloakify/keycloakify-starter-webpack).
|
2022-09-06 17:22:23 +00:00
|
|
|
|
|
|
|
# Quick start
|
|
|
|
|
|
|
|
```bash
|
2023-04-20 00:22:43 +00:00
|
|
|
git clone https://github.com/keycloakify/keycloakify-starter
|
|
|
|
cd keycloakify-starter
|
2024-06-21 00:31:13 +00:00
|
|
|
yarn install # Or use an other package manager, just be sure to delete the yarn.lock if you do.
|
2022-09-06 17:22:23 +00:00
|
|
|
```
|
|
|
|
|
2024-06-16 16:08:59 +00:00
|
|
|
# Testing the theme locally
|
2023-04-17 00:58:17 +00:00
|
|
|
|
2024-06-21 00:31:13 +00:00
|
|
|
[Documentation](https://docs.keycloakify.dev/v/v10/testing-your-theme)
|
2024-06-09 12:25:34 +00:00
|
|
|
|
2024-06-16 16:08:59 +00:00
|
|
|
# How to customize the theme
|
2023-04-17 00:58:17 +00:00
|
|
|
|
2024-06-16 16:08:59 +00:00
|
|
|
[Documentation](https://docs.keycloakify.dev/v/v10/customization-strategies)
|
2022-09-06 17:22:23 +00:00
|
|
|
|
2024-06-16 16:08:59 +00:00
|
|
|
# Building the theme
|
2022-09-06 17:22:23 +00:00
|
|
|
|
2024-06-16 16:52:36 +00:00
|
|
|
You need to have Maven installed to build the theme (The `mvn` command must be in the PATH).
|
2024-06-21 00:31:13 +00:00
|
|
|
|
|
|
|
- On macOS: `brew install maven`
|
|
|
|
- On Debian/Ubuntu: `sudo apt-get install maven`
|
|
|
|
- On Windows: `choco install openjdk` and `choco install maven` (Or download from [here](https://maven.apache.org/download.cgi))
|
2024-06-16 16:52:36 +00:00
|
|
|
|
2022-09-06 17:22:23 +00:00
|
|
|
```bash
|
2024-06-16 16:08:59 +00:00
|
|
|
npm run build-keycloak-theme
|
2022-09-06 17:22:23 +00:00
|
|
|
```
|
|
|
|
|
2024-06-16 16:08:59 +00:00
|
|
|
Note that by default Keycloakify generates multiple .jar files for different versions of Keycloak.
|
2024-06-21 00:31:13 +00:00
|
|
|
You can customize this behavior, see documentation [here](https://docs.keycloakify.dev/v/v10/targetting-specific-keycloak-versions).
|
2024-06-06 07:42:01 +00:00
|
|
|
|
|
|
|
# GitHub Actions
|
|
|
|
|
2024-06-07 03:20:57 +00:00
|
|
|
The starter comes with a generic GitHub Actions workflow that builds the theme and publishes
|
2024-06-20 02:04:59 +00:00
|
|
|
the jars [as GitHub releases artifacts](https://github.com/keycloakify/keycloakify-starter/releases/tag/v7.0.1).
|
2024-06-08 01:34:31 +00:00
|
|
|
To release a new version **just update the `package.json` version and push**.
|
2024-06-07 03:20:57 +00:00
|
|
|
|
|
|
|
To enable the workflow go to your fork of this repository on GitHub then navigate to:
|
2024-06-08 01:34:31 +00:00
|
|
|
`Settings` > `Actions` > `Workflow permissions`, select `Read and write permissions`.
|