A Spring Boot backend application for a simple Point of Sale (POS) system.
- Java 11 or higher
- Maven 3.6 or higher
- MongoDB database (local installation or cloud service like MongoDB Atlas)
This application requires a MongoDB database. You can either:
- Install MongoDB locally
- Use a cloud service like MongoDB Atlas
Create the following environment variables for database configuration:
export MONGODB_URI="your-mongodb-connection-string"
export MONGODB_DATABASE="kassensystem"# Install dependencies
mvn clean install
# Run the application
mvn spring-boot:runThe application will start on port 8081 by default.
The application provides REST endpoints for:
- Product management
- Transaction processing
- Receipt printing
Run the test suite:
mvn testsrc/main/java/simplepos24/- Main application codeconfig/- Configuration classescontroller/- REST controllersentity/- Data modelsservices/- Business logicdto/- Data transfer objectsfactory/- Factory classesprinter/- Receipt printing functionality
src/test/java/- Test classes