Skip to main content

Starting the project

Prerequisites

  • Node.js (v14+ recommended)
  • npm (v6+ recommended)
  • Angular CLI (npm install -g @angular/cli)

Installation

  1. Clone the repository
git clone <repository-url>
cd ondelivery-dash
  1. Install dependencies
npm install
  1. Configure API endpoints Edit src/app/addrezz.ts to set the appropriate API endpoints:
export const OSAS_API = "https://testapi.ondelivery.id";
export const BOOKING_API = "https://demoapisat.ondelivery.id";
export const USAPI_API = "http://localhost:3621";

Running the Application

Development Server

npm start
# or
ng serve

Navigate to http://localhost:4200/. The app will automatically reload on file changes.

Production Build

npm run build

Build artifacts are stored in the dist/ directory with output hashing for cache busting.

Development Build

npm run build-dev

Builds without production optimizations.

Run Tests

npm test

Run Linter

npm run lint