๐ŸงชDevelopment

Test and debug your theme

Seeing the result live

When building your page you want to see the result of your edit live.

To acheave that with Keycloakify simply eddit:

 import { getKcContext } from "keycloakify";

 const { kcContext } = getKcContext({
+    "mockPageId": "login.ftl"
 });

See the getKcContext() call in the keycloakify-demo-app project.

See the getKcContext() call in the keycloakify-demo-app#look_and_feel project.

then if you run yarn start you will see your login page display. Dont forget to remove mockPageId before releasing ๐Ÿ˜‰.

The page is loaded with a default mock context.

To customize the mock kcContext please refer to this example.

Testing in a real Keycloak instance

Once you are done developping you want to test in an actual Keycloak instance to see if everything is working as expected.

Please refer to the related instruction printed on the console when running yarn keycloak in your project.

Last updated