2020-08-10 17:17:23 +00:00
# Keycloak Admin Console V2
2020-10-07 16:10:55 +00:00
This project is the next generation of the Keycloak Administration Console. It is written with React and [PatternFly 4][1].
2020-08-06 09:31:45 +00:00
2020-08-10 17:17:23 +00:00
### Development Instructions
2020-08-06 09:31:45 +00:00
2020-10-07 16:10:55 +00:00
For development on this project you will need a running Keycloak server listening on port 8180. You will also need [yarn installed on your local machine.][2]
2020-08-10 17:17:23 +00:00
1. Start keycloak
2020-10-07 16:10:55 +00:00
* Download and run with one command
2020-08-06 09:31:45 +00:00
```bash
2020-10-07 16:10:55 +00:00
$> ./start.js
2020-08-06 09:31:45 +00:00
```
2020-10-07 16:10:55 +00:00
* or download Keycloak server from [keycloak downloads page][3] unpack and run it like:
2020-08-06 09:31:45 +00:00
```bash
2020-10-07 16:10:55 +00:00
$> cd < unpacked download folder > /bin
$> standalone -Djboss.socket.binding.port-offset=100
2020-08-06 09:31:45 +00:00
```
2020-10-07 16:10:55 +00:00
1. Go to the clients section of the existing Keycloak Admin Console and add the client
2020-08-06 09:31:45 +00:00
* like this:
![realm settings ](./realm-settings.png "Realm Settings" )
2020-08-10 17:17:23 +00:00
* or click on the "Select file" button and import `security-admin-console-v2.json`
2021-01-28 15:04:48 +00:00
* or run `$> ./import.js`
2020-08-06 09:31:45 +00:00
2020-10-07 16:10:55 +00:00
1. Install dependencies and run:
2020-08-06 09:31:45 +00:00
```bash
$> yarn
2020-09-04 10:38:23 +00:00
$> yarn start
2020-08-06 09:31:45 +00:00
```
### Additionally there are some nice scripts to format and lint
```bash
$> yarn format
2020-10-07 16:10:55 +00:00
$> yarn check-types
2020-08-06 09:31:45 +00:00
$> yarn lint
2020-09-04 10:38:23 +00:00
```
To switch to a RH-SSO themed version of this console you can run:
```bash
$> npx grunt switch-rh-sso
```
2020-09-13 20:15:30 +00:00
To switch back just do a `git checkout public`
2020-10-07 16:10:55 +00:00
[1]: https://www.patternfly.org/v4/
[2]: (https://classic.yarnpkg.com)
[3]: https://www.keycloak.org/downloads