The FutsalLeague Manager frontend is an Angular 20 single-page application. The build pipeline compiles TypeScript, bundles assets, and outputs a fully staticDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Danielsl4/TFG_DAM_2526/llms.txt
Use this file to discover all available pages before exploring further.
dist/ folder that can be deployed to any static hosting provider — Vercel, Netlify, an nginx server, or any CDN. This page walks through development setup, production builds, and hosting requirements.
Prerequisites
- Node.js 18 LTS or newer
- Angular CLI 20 — install globally if not already present:
Development server
Install dependencies and start the local dev server:http://localhost:4200 and uses environment.development.ts for configuration, which points the API client at http://localhost:3000.
Environment configuration
Angular’s file-replacement mechanism swaps environment files at build time. Both files export anenvironment object with the same shape.
src/environments/environment.development.ts — used during ng serve:
src/environments/environment.ts — used for production builds:
apiUrl in environment.ts to match the public URL of your deployed backend before running a production build.
Build and deploy workflow
Update the production API URL
Open
src/environments/environment.ts and set apiUrl to your backend’s public URL:Run the production build
dist/frontend/browser/ folder. Budget thresholds are set to warn at 2 MB and error at 4 MB for the initial bundle.Deploy the dist/ folder
Upload the contents of
dist/frontend/browser/ to your hosting provider:- Vercel / Netlify — drag and drop or connect your repository; both auto-detect Angular projects.
- nginx / Apache — copy the folder to your web root and configure the server for SPA routing (see below).
- Any CDN — the output is fully static; no server-side runtime is required.
SPA routing
The app uses Angular’s HTML5PathLocationStrategy (standard browser routing with no hash). Any URL the user navigates to directly — or refreshes — must be served by index.html; otherwise the server returns a 404 for routes it doesn’t recognise as files.
Vercel Analytics
The project includes@vercel/analytics as a production dependency. Analytics are pre-integrated — no extra configuration is needed when deploying to Vercel. When deploying elsewhere, the package is a no-op and adds no overhead.
Testing
Unit tests (Karma + Jasmine)
karma-coverage.