This change adds a single page application front-end to GARM. It uses a generated REST client, built from the swagger definitions, the websocket interface for live updates of entities and eager loading of everything except runners, as users may have many runners and we don't want to load hundreds of runners in memory. Proper pagination should be implemented in the API, in future commits, to avoid loading lots of elements for no reason. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
16 lines
254 B
Bash
Executable file
16 lines
254 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "Building GARM SPA (SvelteKit)..."
|
|
|
|
# Navigate to webapp directory
|
|
cd webapp
|
|
|
|
# Install dependencies if node_modules doesn't exist
|
|
npm install
|
|
|
|
# Build the SPA
|
|
echo "Building SPA..."
|
|
npm run build
|
|
echo "SPA built successfully!"
|