This guide will assist in creating a verifiable credential from an existing data source, converting it into a QR code, and then verifying the QR code online.
Install Inji Certify: Follow the installation guide available on the Github Repository.
Generate Verifiable Credential: By following the provided documentation, users will be able to generate a verifiable credential in JSON-LD format using Inji Certify.
Copy the credential body(value of 'credential' from credential response) from the generated credential from Inji Certify to pass it as a data parameter to generateQRCode
from Pixelpass library.
Steps to create QR code using node -
Create a directory and npm init
npm install @mosip/pixelpass
Enter node shell -
const {generateQRData} = require('@mosip/pixelpass')
generateQRCode(JSON.stringify(JSON.parse(<credential_data>)))
Save QR Code Image: Copy the image data and paste it into the browser URL. Save the QR code image.
The below steps are valid once it is deployed in your local system by following the local setup guide.
Open Inji Verify Portal: Access the Inji Verify portal in your browser once it is deployed in your local setup.
Upload QR Code: Select the 'upload QR code' option and upload the QR code retrieved from the Pixelpass integrated app. To see how the upload feature works you can refer to our end-user guide.
Verify QR Code: If the QR code is valid, credentials will be displayed along with a success message.
This guide is designed to help users set up Inji Verify in their local environment, providing detailed instructions to replicate the platform's functionality on their machine for development or testing purposes.
Clone the repositories in the local to bring up your setup. Repository information can be fetched from here.
Prerequisites: Node 18 - Can be installed using nvm. Run the following commands to install the node
Helm: The folder contains helm charts required to deploy on K8S
Inji Verify: This contains the source code and Dockerfile
Click on the ReadMe file to explore more!
Docker Compose provides two types of setup options: one for developer setup, enabling full-featured access for development and testing, and another for demo setup, optimized for showcasing specific use cases with simplified configuration.
Developer Setup:
To set it up for the developer, follow the steps outlined in the README file for configuring Docker Compose for development, including necessary dependencies and configurations.
Demo Setup:
Refer to the README for Docker Compose Instructions:
Inside the Inji Verify project directory, you will find a README file. This file contains detailed steps for setting up the project using Docker Compose.
Review the steps under the "Docker Compose" section for instructions on how to build and run the containers.
Run Docker Compose:
Use Docker Compose to build and deploy the application.
Access the Application:
Once the build is complete, the application will be available to access via the configured endpoint.
Let's explore how to initiate Inji Verify locally after completing the setup in your local environment.
Run the following commands to start the application:
Build and run Docker for a service:
Open URL: http://localhost:3000
The Build & Deploy section offers a detailed overview of the process and steps involved in building and deploying Inji Verify.