A modern web application for the Warehouse Management System (WMS). This system handles various warehouse operation modules, from ATK (Alat Tulis Kantor) management to webservice integrations for DC and DPD, serving as the frontend client built with SvelteKit.
The application is modularized into several core systems:
/login, /logout)/dashboard)/atk)/webservice-dc)/webservice-dpd)/support)wms-client/
āāā src/
ā āāā lib/ # Shared components, configurations, services, stores, and utils
ā ā āāā components/ # Reusable UI components
ā ā āāā config/ # App configurations and constants
ā ā āāā layouts/ # Layout components
ā ā āāā services/ # API integrations and external services
ā ā āāā stores/ # Svelte stores for state management
ā ā āāā utils/ # Helper functions
ā āāā routes/ # SvelteKit file-based routing
ā ā āāā (auth)/ # Authentication layout and routes
ā ā āāā (main)/ # Main application layout and feature routes
āāā .env.development # Environment variables for local development
āāā .env.production # Environment variables for production
āāā ecosystem.config.cjs # PM2 configuration specifically for deployment
āāā svelte.config.js / vite.config.js
Clone the repository: Ensure you have the repository securely cloned into your local development environment.
Install dependencies:
Using npm, pnpm, or yarn.
npm install
Environment Setup:
A .env.development or .env.production file is required to connect to the proper backend gateway APIs.
Start Development Server:
npm run dev
The server will be running on your local machine, typically at http://localhost:5173.
npm run dev: Starts the development server with Vite.npm run build: Compiles the app for production use.npm run preview: Previews the local production build.npm run lint / npm run format: Runs ESLint and Prettier.npm run env:debug: Executes a custom script (scripts/debug-env.js) to diagnose environment variables and API connections.This project is configured to run using PM2 via ecosystem.config.cjs:
npm run pm2:start: Starts the application in PM2.npm run pm2:restart: Restarts the active PM2 process.npm run pm2:stop: Stops the application process.npm run pm2:logs: Streams logs generated by the application.npm run pm2:monit: Opens the PM2 monitoring dashboard.Built natively via Svelte.