Starting the project
Prerequisites
- Node.js (v14+ recommended)
- npm (v6+ recommended)
- Angular CLI (
npm install -g @angular/cli)
Installation
- Clone the repository
git clone <repository-url>
cd ondelivery-dash
- Install dependencies
npm install
-
Configure API endpoints
Edit
src/app/addrezz.tsto 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
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