This guide walks you through running Dragon Guard WMS Web on your local machine. You will clone the repository, point the app at a running Dragon Guard WMS backend, start the Angular dev server, and validate the build — all in four steps. No prior PrimeNG experience is required, but familiarity with the Angular CLI will help.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/DG_WEB/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are available on your machine:- Node.js 16+ and npm — verify with
node -vandnpm -v - Angular CLI 15 — install globally with
npm install -g @angular/cli@15, or usenpxfor one-off commands without a global install - A running Dragon Guard WMS backend — the .NET Wms.Api must be accessible at a known URL (e.g.,
http://localhost:5262) before the frontend can authenticate or load data - Valid backend credentials — a username and password registered in the Wms.Api tenant you intend to log in to
Setup Steps
Clone the repository and install dependencies
Clone the Dragon Guard WMS Web repository and install all npm dependencies:This installs Angular 15, PrimeNG 15, and all other packages listed in
package.json. Expect the initial install to take a minute or two depending on your connection.Configure the backend URL
Open
src/environments/environment.ts and set apiUrl and serverUrl to match the address of your running Dragon Guard WMS backend:serverUrlis the root of the backend host (used for non-API calls such as file downloads).apiUrlis the base path for all Wms.Api REST endpoints.
Start the development server
Launch the Angular dev server with the default npm script:Angular CLI compiles the application and serves it at http://localhost:4200. The browser will open automatically (or navigate there manually). Hot-reload is active — saving any source file will recompile and refresh the page instantly.Log in with the backend credentials you prepared in the prerequisites. Standard users land on
/dashboard; accounts with the SUPERADMIN_SUPREMO role are redirected to /dashboard/supreme.Validate the production build
Before delivering any changes, confirm that the production build completes without errors:Angular CLI compiles the application in production mode (ahead-of-time compilation, tree-shaking, minification) and writes the output to the
dist/ directory. A clean build with zero errors is the minimum bar before any handoff or deployment.Available npm Scripts
| Script | Command | Purpose |
|---|---|---|
npm start | ng serve | Start the local dev server at http://localhost:4200 with hot-reload |
npm run build | ng build | Compile a production-ready build into dist/ |
npm run lint | ng lint | Run Angular ESLint rules across the codebase |
npm test | ng test | Execute unit tests with the Karma test runner and Jasmine framework |
npm run watch | ng build --watch | Development build that recompiles automatically on file changes |
For production deployments, do not hardcode a backend IP address in
environment.prod.ts. The production environment file defaults to window.location.origin so the frontend works on any host without recompiling. If the backend lives on a different host than the frontend, use the window.__dragonGuardConfig override in src/assets/runtime-config.js to supply the correct URLs at runtime — no rebuild required. See Runtime Configuration for details.