Frontend Setup (PWA)
Last updated
Was this helpful?
Last updated
Was this helpful?
The Unified Communications Interface (UCI) aims to democratize the use of different communication channels such as WhatsApp, Telegram, SMS, email and more for governance use cases through a standard configurable manner that is reusable and scalable across all governance use cases.
Transport socket takes request from chatbot client and send it to UCI adapter to get response and return it back to bot client
[UCI] <---> [Socket Transport Layer] <---> [Frontend]
This document helps you to setup UCI-PWA which helps you to experience the conversation with chatbot on UCI web channel.
Update to latest version
Install Git
Install curl
Install Node.js, npm, yarn
Node version should be latest or stable (v16.15.0)
To check node version:
Install NVM
Make nvm command available to terminal
For more information of node and NVM installation, .
Switching node version
Run the following command to check node version
If your node version is not v16.15.0 or latest, even after installation, you can switch to the required version by the following command:
Fork the repository:
To get a copy of the repository, you need to fork the following:-
Clone the forked repository:
To download the forked repository, you need to clone it.
Move to the directory with the cloned repository:
Run the following command to see if your local copy has a reference to your forked remote repository in GitHub:
Import the cloned repository to the chosen IDE.
Install the required packages
In terminal (location should be same as the current location of the repository), run this command to install all the packages required to run the code:-
Setup all the environment variables:-
Make a file named '.env' in the base location of the project directory(where .env-sample is located) and add the following in it.
Once all the required packages are successfully installed and .env files are setup, start the project.
To start the project, run the following command:-
After running the project, browser displays the following screen:
This is the first look of UCI-PWA:
The textbar given below can be used to send messages. Once you send the required starting message, conversation with the bot gets started.
Contact the to get the production transport socket url or setup transport socket on local using
Contact the to get the production inbound url or setup inbound on local using this