# 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-
raw.githubusercontent.com | bash
$ nvm install 18
```
---
# Configuration:
Inji web connects with a backend-for-frontend service called Mimoto. Configuration details, such as URLs to connect with this service and other environment-specific settings (e.g., `IGNORED_ISSUER_IDS`, `DEFAULT_LANG`), can be updated in the `env.config.js` 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 : .
# add the environments you wish to update as env while running the docker image
$ docker run -e DEFAULT_LANG=en -it -p 3004:3004 :
```
- 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 ser …