Local Setup

Inji Verify Local Setup

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.

Repositories:

Clone the repositories in the local to bring up your setup. Repository information can be fetched from here.

Installations:

Prerequisites: Node 18 - Can be installed using nvm. Run the following commands to install the node

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
$ nvm install 18

Folder Structure:

  • 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:

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:

  • To set up the application on your local system for specific use cases or demo purposes, follow the steps provided in the README file. The README contains detailed instructions tailored to your requirements for easy setup and deployment.

  • 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.

Running the application:

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:

$ cd ./inji-verify
$ npm install
$ npm start
  • Build and run Docker for a service:

$ docker build -t <dockerImageName>:<tag> .
$ docker run -it -d -p 3000:3000 <dockerImageName>:<tag>

Last updated

Copyright © 2021 MOSIP. This work is licensed under a Creative Commons Attribution (CC-BY-4.0) International License unless otherwise noted.