Skip to content

rajapandi1234/inji-web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inji-Web

Injiweb is a web interface for users who does not have access to smartphone for accessing and using digital credentials. A user should be able to do primariliy 4 key actions - fetch, download, store, share.


Installations:

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

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

Configuration:

Inji web connects with a backend-for-frontend service called Mimoto. URLs to connect with this service can be updated in the config file by running the following command:

$ nano ./inji-web/public/env.config.js

Once the config file is updated run following commands to save the updates:

ctrl + o and then y to save the changes

ctrl + x to exit


Folder Structure:

  • helm: folder contains helm charts required to deploy on K8S

  • inji-web: contains the source code and Dockerfile


Updating Mimoto Host

In the env.config.js file, modify the MIMOTO_URL to url pointing to the mimoto service running


Running Inji Web:

  • Run following commands to start the application:
$ cd ./inji-web
$ npm install
$ npm start
  • Run npm test to run tests
  • Build and run Docker for a service:
# Navigate to the project's root directory and then run the following commands
$ cd ./inji-web
$ docker build -t <dockerImageName>:<tag> .
# add the environments you wish to update as env while running the docker image
$ docker run -e DEFAULT_LANG=en  -it -p 3004:3004 <dockerImageName>:<tag>
  • Run Using Docker Compose:
# Navigate to the project's root directory and then run the following commands
$ cd ./docker-compose

# Start the services
$ docker-compose up
  • Stop Using Docker Compose:
# Navigate to the project's root directory and then run the following commands
$ cd ./docker-compose

# Stop the services
$ docker-compose down
  • You can access the application in the below nginx server :

Open URL http://localhost:3004

Running Tests in Inji Web

  • Snapshot testing has been implemented for layout tests to ensure consistent UI and detect changes.
  • To run the test cases, use the following command:
npm test
  • To update the Snapshot based on the changes run the command:
npm test --u
  • To check the test coverage, use the following command:
npm test -- --coverage

About

Repo contains code for Inji Web

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 60.1%
  • Java 29.2%
  • HTML 4.5%
  • Gherkin 3.1%
  • Shell 0.8%
  • JavaScript 0.8%
  • Other 1.5%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy