OpenSABER Setup (Digital registry) - PDA-Open-Source/PDA-SESSION GitHub Wiki

Prerequisites

  • Java - 8+
  • git

Building the library

git clone https://github.com/project-sunbird/open-saber.git
cd open-saber
#for linux
sh configure-dependencies.sh

#for windows
bash configure-dependencies.sh

Build and Install

cd java
mvn clean install

Configurations

The default implementation uses Sunbird’s authentication mechanism which is using keycloak for authentication. Authentication requires the below mentioned environment variables to be configured And can be configured in KeyCloakServiceImpl.java in middleware/registry-middleware/authorization/src/main/java/io/opensaber/registry/authorization folder.

#Example
ssoUrl = "http://localhost/auth/"
ssoRealm = "master"
publicKey = “publicKey”

Database configuration

OpenSABER provides neo4j as the default database, database configuration can be done in application.yml file in registry/src/main/resources folder.

uri: ${connectionInfo_uri:bolt://localhost:7687}
username: ${connectionInfo_username:<neo4j username>}
password: ${connectionInfo_password:<neo4j password>}

Running the Registry

We Can start up an OpenSABER instance in two ways.

Running using Docker

In order to run using docker, you need to install docker in your system.

cd registry
docker-compose up

Running as a jar file

cd registry/target
java -jar registry.jar

For more information on configurations and API's you can check openSABER Documentation.