Local setup
Last updated
Was this helpful?
Last updated
Was this helpful?
This document aims to assist users in setting up Inji Web on their local environment, offering step-by-step instructions to replicate the platform's functionality on their machine for development or testing purposes.
Clone the repositories locally to bring up your own setup. Repository information can be fetched from .
Pre-requisite:
In order to run Inji Web locally, Node 18 is required. Please follow the below steps to install node.
Node 18 can be installed using . Run the following commands to install node:
helm: folder contains helm charts required to deploy on K8S
inji-web: contains the source code and Dockerfile
docker-compose: contains docker-compose.yml, environment files, and service configurations.
This setup uses Docker Compose to run DataShare Service (Service to store VC), Mimoto Service (Backend for Frontend) and Inji Web (Frontend) together locally, providing a simple and easy-to-manage environment.
Navigate to the inji-web
folder and build the Inji Web image locally.
Prepare the environment:
In the docker-compose
folder, there are configuration files and certificates for integrating Mimoto as the BFF (Backend for Frontend) for the web and mobile services.
Create a certs
folder in the docker-compose
directory and add the necessary OIDC client certificate (as mentioned below).
Update the configuration files:
mimoto-issuers-config.json
(Add Id providers as issuers)
mimoto-trusted-verifiers.json
(Add verifiers clientId and redirect URI for online sharing)
Update Esignet host references in the mimoto-default.properties
, mimoto-issuers-config.json
files.
Set the oidc_p12_password
environment variable value as per the documentation.
Update mimoto-issuers-config.json
with the client ID and client alias as per your OIDC onboarding.
Start the Docker Compose environment:
Stop the Docker Compose environment:
If you'd prefer to run Inji Web without Docker Compose, you can manually set up and run the app on your local machine.
Navigate to the inji-web
folder and install dependencies:
Start the Inji Web application:
Troubleshooting CORS issues:
If you encounter CORS errors when running the web app locally, you will need to set up a proxy server and configure it to point to https://api.collab.mosip.net
for Mimoto's API.
Once the proxy server is running, update the Inji Web
app to use the proxy by modifying the window.location.origin
in the src/utils/api.ts
file.
Run tests:
Docker Compose Setup: This is the recommended setup for running Inji Web along with Mimoto locally.
Standalone Setup: If you prefer, you can run Inji Web as a standalone Node.js application.
Create OIDC client and generate oidckeystore.p12
. You can follow the setup guide for this process .
Follow this to set up the proxy.