Prerequisites
Before you start, make sure you have the following installed:- Node.js v20 or later
- Angular CLI v21 (
npm install -g @angular/cli)
Both apps communicate with a backend REST API. You must have the backend running at
http://127.0.0.1:8000 before the apps can fetch or submit data. See the environment configuration step below for details.Setup
Install dependencies
Install all workspace dependencies with a single command from the project root:
Configure the backend API URL
Each app reads the API base URL from its own environment file. The development defaults already point to a locally-running backend.Public app — Admin app — Update
projects/public/src/environments/environment.ts:projects/admin/src/environments/environment.ts:apiBase in both files if your backend runs on a different host or port. For production builds, edit the corresponding environment.prod.ts files instead — Angular replaces the development file automatically during a production build.Start the public app
/solicitud) and the ticket tracking page (/consulta).Start the admin app
Open a second terminal and run:The admin panel opens at http://localhost:4201. It requires login and provides the dashboard, ticket management, and user management views.
Build for production (SSR)
Both apps are configured for Angular Server-Side Rendering (SSR). Use the following commands to create a production build and then serve it with the included Express server.Build
dist/public/ and dist/admin/ respectively.
Serve
4000 by default. You can override this with the PORT environment variable: