The FutsalManager frontend is an Angular application that communicates with the backend REST API. You build it into static files that any web server or CDN can serve.Documentation 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.
Prerequisites
- Node.js 18+
- Angular CLI — installed globally via
npm install -g @angular/cli
Install dependencies
Run this from thefrontend/ directory:
Development server
To run the app locally against the development API (http://localhost:3000):
Environment configuration
The Angular build system swaps environment files at build time. There are two files insrc/environments/:
| File | Used when | API URL |
|---|---|---|
environment.development.ts | ng serve (development build) | http://localhost:3000 |
environment.ts | ng build (production build) | https://backend-lovat-tau.vercel.app |
src/environments/environment.ts:
src/environments/environment.ts
Do this before running
ng build. The API URL is baked into the compiled output — there is no runtime configuration file.Production build
dist/ directory. The default output path is dist/frontend/browser/.
Serving the built app
The contents ofdist/frontend/browser/ are plain static files. You can serve them with any web server.
Angular uses client-side routing. Make sure your server falls back to
index.html for all routes that are not static files, or navigation will break on page refresh.Vercel Analytics
The app includes@vercel/analytics. When deployed on Vercel, analytics are collected automatically with no additional configuration needed.