This guide walks you through cloning the repository, installing dependencies, pointing the app at your backend, and starting the Angular development server. From a fresh machine to a running dashboard takes less than five minutes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HectorDNC/galactic-tournament-front/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following tools are available on your system:- Node.js 20 or later — nodejs.org
- pnpm (recommended) or npm — pnpm is the package manager used by the project’s lockfile. Install it with
npm install -g pnpmif needed. - Angular CLI (optional) — enables standalone
ngcommands:npm install -g @angular/cli
Setup
Install dependencies
Install all Node dependencies. pnpm is recommended because the project ships a
pnpm-lock.yaml lockfile, which guarantees reproducible installs.Configure the API URL
The development server reads its API base URL from Change
src/app/environments/environment.development.ts. Open the file and set api_url to wherever your backend is running.src/app/environments/environment.development.ts
http://localhost:8080 to match your backend’s address if it runs on a different host or port. For reference, the production environment file looks like this:src/app/environments/environment.prod.ts
Angular bakes environment values into the compiled bundle at build time. If you update this file after a build, you must restart the dev server or rebuild for the change to take effect.
Start the development server
Launch the Angular dev server using the
dev script, which activates the development configuration and hot-reloading.Available scripts
All scripts are defined inpackage.json and invoked with pnpm run <script> or npm run <script>.
| Script | Command | Description |
|---|---|---|
dev | ng serve --configuration development | Starts the dev server with development environment (hot-reload enabled) |
start | ng serve --configuration production | Starts the dev server using the production environment file |
build | ng build | Compiles a production bundle into dist/ng-tailadmin/browser |
test | ng test | Runs unit tests via Karma and Jasmine |
watch | ng build --watch --configuration development | Continuously rebuilds on file changes |