Skip to main content

Installation

This guide walks you through setting up the ACTS ML dashboard locally for development.

Prerequisites

  • Node.js ^20.19.0 or >=22.12.0
  • npm (comes with Node.js)
  • Git

Clone the Repository

git clone https://github.com/ACTS/acts-ml.git
cd acts-ml

Install Dependencies

npm install

Environment Setup

Create a .env file in the project root with the following variables:

VITE_DIRECTUS_URL=https://your-api-instance.com/v1/api/d
VITE_DIRECTUS_WEBSOCKET_URL=wss://your-api-instance.com/v1/api/d
VariableDescription
VITE_DIRECTUS_URLThe Directus API endpoint for your ACTS ML backend
VITE_DIRECTUS_WEBSOCKET_URLWebSocket URL for real-time updates

Start the Development Server

npm run dev

The application will be available at http://localhost:5173.

Available Scripts

CommandDescription
npm run devStart development server with hot reload
npm run buildBuild for production (includes type checking)
npm run previewPreview the production build locally
npm run test:unitRun unit tests with Vitest
npm run test:e2eRun end-to-end tests with Playwright
npm run lintLint code with ESLint and Oxlint
npm run formatFormat code with Prettier

Next Steps

Once the application is running, head to the Quick Start guide to create your first project.