This is the backend repository for the React Tailwind POS project. The backend is built using Spring Boot, JPA, and PostgreSQL to handle product and transaction management.
- Spring Boot: A powerful framework to build production-ready applications.
- JPA: Java Persistence API for easy data handling.
- PostgreSQL: A robust and reliable relational database.
- Products: Fetch all products from the
/products
route. - Transactions: Fetch all transactions from the
/transaction
route.
- Java 11 or higher
- PostgreSQL
- Clone the repository:
git clone https://github.com/djiordhan/spring-boot-pos.git
- Navigate to the project directory:
cd spring-boot-pos
- Configure PostgreSQL database in
application.properties
:spring.datasource.url=jdbc:postgresql://localhost:5432/your_database spring.datasource.username=your_username spring.datasource.password=your_password spring.jpa.hibernate.ddl-auto=update
- Build the project:
./gradlew clean build
- Run the application:
./gradlew bootRun
- Fetch Products:
GET /products
- Fetch Transactions:
GET /transaction