Skip to content

IT24100559/laundry-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laundry Management System

This repository now ships a Spring Boot REST API and a Vite + React front-end for the SmartFold laundry operations demo. The backend exposes CRUD endpoints for customers, orders, deliveries, payments, tasks, and messages under /api/** while the React client consumes them via the Vite dev server.

Prerequisites

  • Java 17+
  • Node.js 18+

Backend (Spring Boot API)

./gradlew bootRun

Gradle is pre-configured to launch the SmartFold Spring Boot application and it listens on http://localhost:8080. Override the port when needed:

./gradlew bootRun --args='--server.port=8081'

Authentication is provided by two in-memory demo users:

  • admin / admin123
  • customer / customer123

The /api/auth/login endpoint powers the React demo cards and also returns a simple JSON payload (username, roles, demo token). All GET requests under /api/** are public. Mutating requests (POST/PUT/PATCH/DELETE) require HTTP Basic credentials and will receive 401 responses if you omit them. API documentation is available at http://localhost:8080/swagger-ui.html once the server is running.

Frontend (React + Vite)

cd smartfold-frontend
npm install
npm run dev

The Vite dev server runs on http://localhost:5173 and proxies /api to the Spring Boot app on http://localhost:8080. The front-end ships with pages for Home, About, Pricing, Login, and the SmartFold dashboard (customers, orders, deliveries, payments, tasks, messages). Theme toggling, Bootstrap styling, and Axios-powered CRUD flows are included.

Demo workflow

  1. Start the Spring Boot server (./gradlew bootRun).
  2. Start the Vite dev server (npm run dev inside smartfold-frontend).
  3. Visit http://localhost:5173 and explore the public pages.
  4. Navigate to “Open App” to reach the dashboard. CRUD actions will call /api/** via the proxy. Use the admin credentials for actions that modify data.

Enjoy exploring SmartFold!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published