Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Basic NodeJS Example

Start and configure Keycloak

Start Keycloak:

Docker

Using the image from https://hub.docker.com/r/jboss/keycloak/

docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin jboss/keycloak

Standard

/<Path-To-Keycloak>/bin/standalone.sh

Open the Keycloak admin console, click on Add Realm, click on import 'Select file', select nodejs-example-realm.json and click Create.

Link the HEAD code of keycloak-connect by running:

npm link ../

Install the dependencies and start NodeJS example by running:

npm install
npm start

Open the browser at http://localhost:3000/ and login with username: 'user', and password: 'password'.