FutsalManager consists of two independent services: a Node.js/Express REST API and an Angular single-page application. Both run locally during development and can be deployed separately to any hosting platform. Follow the steps below to get a working local environment from scratch.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.
You need PostgreSQL and Redis running before starting the backend. PostgreSQL stores all application data. Redis is used for response caching and rate-limit tracking on the authentication endpoints. The backend will start without Redis, but rate limiting and caching will not function correctly.
Clone the repository
Clone the project to your local machine and navigate into it.The repository contains two top-level directories:
backend/ and frontend/. Each has its own dependencies and must be installed separately.Configure backend environment variables
Create a
.env file in the backend/ directory. The backend reads all configuration from environment variables via dotenv.Initialize the database
Run the database initialisation script from the If the script completes without errors, your PostgreSQL database is ready. Re-running the script on an existing database is safe — it uses
backend/ directory. This creates all required tables and seed data.CREATE TABLE IF NOT EXISTS statements.Start the backend
Start the Express API server from the When the server is running you will see:The API is now available at
backend/ directory.http://localhost:3000. All routes (/login, /register, /matches, /teams, etc.) are mounted and ready.Configure the frontend environment
The Angular application reads the API base URL from an environment file. Open If you deploy the backend to a remote host, update
frontend/src/environments/environment.ts and set apiUrl to point at your running backend.apiUrl accordingly (and update environment.prod.ts for production builds).Verify your setup
Openhttp://localhost:4200 in your browser. You should see the FutsalManager home page with the match schedule. Navigate to /standings and /statistics to confirm the backend is responding correctly.
Architecture
Understand how the frontend, backend, PostgreSQL, and Redis work together.
Admin guide
Create your first season, add teams, and schedule your first match.