Installation
Installation
Section titled “Installation”This guide walks you through the complete installation process for IONFLOW Frontend.
System Requirements
Section titled “System Requirements”Minimum Requirements
Section titled “Minimum Requirements”| Component | Requirement |
|---|---|
| OS | macOS, Linux, or Windows (WSL2 recommended) |
| CPU | 2+ cores |
| RAM | 8GB+ |
| Disk | 5GB free space |
Software Requirements
Section titled “Software Requirements”| Software | Version | Installation |
|---|---|---|
| Node.js | 18.x or 20.x | nodejs.org or fnm |
| pnpm | 8.x+ | npm install -g pnpm |
| Git | Latest | git-scm.com |
Installation Steps
Section titled “Installation Steps”1. Install Node.js
Section titled “1. Install Node.js”Using fnm (recommended):
# Install fnmcurl -fsSL https://fnm.vercel.app/install | bash
# Install Node.jsfnm install 20fnm use 20
# Verify installationnode --version # Should show v20.x.x2. Install pnpm
Section titled “2. Install pnpm”# Install pnpm globallynpm install -g pnpm
# Verify installationpnpm --version # Should show 8.x.x or higher3. Clone the Repository
Section titled “3. Clone the Repository”# Clone the repository
# Navigate to project directorycd ion4. Install Dependencies
Section titled “4. Install Dependencies”# Install all dependenciespnpm installThis will install:
- Vue 3 and related packages
- PrimeVue components
- Tailwind CSS
- TypeScript
- Testing libraries
- All other dependencies
5. Configure Environment
Section titled “5. Configure Environment”Copy the example environment file:
cp .env.example .env.localEdit .env.local with your configuration:
# API ConfigurationVITE_API_URL=http://localhost:8000/apiVITE_API_VERSION=v1
# Keycloak ConfigurationVITE_KEYCLOAK_URL=http://localhost:8080VITE_KEYCLOAK_REALM=ionflowVITE_KEYCLOAK_CLIENT_ID=ionflow-frontend
# Feature FlagsVITE_ENABLE_DEV_TOOLS=true6. Start Development Server
Section titled “6. Start Development Server”pnpm devThe application will be available at http://localhost:5173.
Verifying Installation
Section titled “Verifying Installation”After starting the development server, verify:
- Application loads: Navigate to
http://localhost:5173 - No console errors: Check browser developer tools
- Hot reload works: Make a change and verify it updates
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues””Module not found” errors
Section titled “”Module not found” errors”# Clear node_modules and reinstallrm -rf node_modulespnpm installPort already in use
Section titled “Port already in use”# Use a different portpnpm dev --port 3000Node version mismatch
Section titled “Node version mismatch”# Check required version in package.json# Then switch to correct versionfnm use 20pnpm lockfile issues
Section titled “pnpm lockfile issues”# Regenerate lockfilerm pnpm-lock.yamlpnpm installPlatform-Specific Issues
Section titled “Platform-Specific Issues”Windows
Section titled “Windows”- Use WSL2 for better compatibility
- Enable long paths:
git config --global core.longpaths true
- If using M1/M2, ensure Rosetta 2 is installed for compatibility
- Ensure
build-essentialis installed for native modules
Optional Setup
Section titled “Optional Setup”Docker Development (Alternative)
Section titled “Docker Development (Alternative)”# Build and run with Dockerdocker-compose up -dDatabase Setup (if needed)
Section titled “Database Setup (if needed)”The frontend connects to backend APIs. Ensure the backend services are running:
# Check backend healthcurl http://localhost:8000/health