A full-stack Point of Sale system composed of a Spring Boot backend, a modern frontend, and a MySQL database.
The project is containerized using Docker Compose and consists of the following services:
- Database (
pos-db): MySQL 8.0 running on port3306(exposed on host as3307). - Backend (
pos-backend): Spring Boot application running on port5000. - Frontend (
pos-frontend): Web interface running on port5173(exposed on host as3000).
- Docker
- Docker Compose
-
Navigate to the project root.
-
Start the services:
docker-compose up --build
-
Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- Database:
localhost:3307- User:
pos_user - Password:
password - Database:
pos_db
- User:
To work on the source code, clone the repository and set up the individual services.
git clone https://github.com/praakhartripathi/Point_of_Sale_system.git
cd Point_of_Sale_systemThe backend is a Spring Boot application located in POS-system-backend/.
- Prerequisites: Java 17, Maven, MySQL.
- Configuration: Update database credentials in
src/main/resources/application.propertiesor via environment variables. - Run:
cd POS-system-backend mvn spring-boot:run
The frontend is a React + Vite application located in POS-system-frontend/.
- Prerequisites: Node.js.
- Run:
cd POS-system-frontend npm install npm run dev