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-ui
Install Dependencies
yarn install
Set Up Environment
Configure environment variables as specified in Environment Variables
Start Development Server
yarn dev
The application will be available at
http://localhost:5173
Build for Production
yarn build
The 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 dev
Node Version Mismatch
# Use nvm to switch Node version nvm use 20
Build Errors
Clear node_modules:
rm -rf node_modules
Clear yarn cache:
yarn cache clean
Reinstall dependencies:
yarn install