Build and Run Instructions
This guide explains how to build and run the Benefits Provider App UI.
Running Locally
Clone the Repository
git clone https://github.com/PSMRI/ubi-provider-ui.git cd ubi-provider-uiInstall Dependencies
yarn installSet Up Environment
Configure environment variables as specified in Environment Variables
Start Development Server
yarn devThe application will be available at
http://localhost:5173Build for Production
yarn buildThe build output will be in the
dist/directoryPreview Production Build
yarn preview
Build Output Structure
The production build (dist/ directory) contains:
index.html- Entry pointassets/- Optimized JavaScript, CSS, and other assetsStatic files (images, fonts, etc.)
Common Issues and Solutions
Port Already in Use
# Change port for development server VITE_PORT=3000 yarn devNode Version Mismatch
# Use nvm to switch Node version nvm use 20Build Errors
Clear node_modules:
rm -rf node_modulesClear yarn cache:
yarn cache cleanReinstall dependencies:
yarn install
Deployment Options
You can host the UI on any hosting provider you prefer, such as S3 and CloudFront.
Here is an example pipeline showing deployment to S3 & CloudFront Invalidation using a CI/CD tool such as GitHub Actions.
We are currently deploying the frontend on S3 (not using Docker). For detailed instructions, refer to the Frontend Deployment Documentation.
Last updated
