Installation
This guide provides comprehensive installation instructions for integrating FlowX.AI UI Toolkits into your Angular or React application. Follow the framework-specific steps to set up the toolkit with all required dependencies and configuration.System requirements
Before installing, verify your development environment meets these requirements:Required software
- Node.js: Version 16.x or higher (18.x recommended)
- npm: Version 8.x or higher, or equivalent package manager (yarn, pnpm)
- Git: For version control and package installation
Framework requirements
- Angular
- React
- Angular CLI 14.x or higher
- Angular 14.x - 17.x (depending on toolkit version)
- TypeScript 4.6 or higher
- RxJS 7.x
FlowX.AI platform access
- Active FlowX.AI platform instance
- API endpoint URL
- Valid authentication credentials
- Process definition access
Verify Node.js and npm
Check your installed versions:Installation steps
- Angular
- React
Install the Angular UI Toolkit package
Install the toolkit package matching your FlowX.AI platform version:
Install peer dependencies
The toolkit requires specific peer dependencies. Install any missing packages:
Most Angular projects already have these dependencies. Check your
package.json to verify.Configure environment variables
Store your FlowX.AI configuration in environment files:
environment.ts
environment.prod.ts
Import stylesheets
Add the toolkit styles to your Alternatively, import in your global
angular.json:angular.json
styles.scss:styles.scss
Configuration options
The FlowX configuration object accepts these properties:| Property | Type | Required | Description |
|---|---|---|---|
apiUrl | string | Yes | Base URL of your FlowX.AI platform API |
processApiPath | string | Yes | Path to process API endpoints (typically /process) |
authToken | string | Yes | Authentication token for API requests |
locale | string | No | Default locale for internationalization (default: en-US) |
translationsPath | string | No | Path to translation files for i18n |
timeout | number | No | Request timeout in milliseconds (default: 30000) |
retryAttempts | number | No | Number of retry attempts for failed requests (default: 3) |
enableLogging | boolean | No | Enable debug logging (default: false in production) |
Example advanced configuration
Verify installation
Confirm the toolkit is installed correctly:- No dependency resolution errors
- No TypeScript compilation errors
- Styles properly bundled in output
Troubleshooting
Peer dependency conflicts
If you see peer dependency warnings:Module resolution errors
For TypeScript module resolution issues, update yourtsconfig.json:
tsconfig.json
Style import issues
If styles don’t load:- Verify the CSS/SCSS file path in your imports
- Check that your build tool processes CSS files
- Clear build cache and rebuild:
rm -rf dist node_modules/.cache && npm run build
Authentication errors
If you get 401/403 errors:- Verify your authentication token is valid
- Check token hasn’t expired
- Confirm API URL is correct and accessible
- Verify CORS settings on your FlowX.AI platform instance
Next steps
Usage guide
Learn how to use FlowX components in your application
Theming
Customize the look and feel to match your brand