GitPedia

Spring boot shop sample

My first web application using Spring Boot framework.

From syqu22·Updated June 12, 2026·View on GitHub·

This is my first project using Spring. I wanted to do e-commerce web application to learn Spring. I have used **Spring Boot**, **Spring Security**, **Spring Data JPA** with **H2 database**, for views i have used **Thymeleaf** template and **Bootstrap** CSS framework. The project is written primarily in Java, distributed under the MIT License license, first published in 2018. Key topics include: boostrap, ecommerce, h2, hibernate, java.

Spring Boot - Shop Sample

Build Status

<img src="src/main/resources/static/images/brand.png" height=100px width=180>

Description

This is my first project using Spring. I wanted to do e-commerce web application to learn Spring. I have used Spring Boot, Spring Security, Spring Data JPA with H2 database, for views i have used Thymeleaf template and Bootstrap CSS framework.

Screenshots

<img src="src/main/resources/static/images/example1.PNG" height=60% width=95%>

Installation

You can clone this repository and use it localy:

sh
$ git clone https://github.com/syqu22/spring-boot-shop-sample.git

Using Maven plugin

First you should do clean installation:

sh
$ mvn clean install

You can start application using Spring Boot custom command:

sh
$ mvn spring-boot:run

Using Maven plugin and running JAR

You can create JAR file using:

sh
$ mvn clean package

and then run it with:

sh
$ java -jar target/shop-x.x.x.jar

Logins

Initially there are 2 users in memory:

Login: admin Password: admin with ADMIN role.

Login: user Password: user with USER role.

Roles

ADMIN can add, edit and delete products.

USER can add products to shopping cart and buy them.

Tests

You can run tests using:

sh
$ mvn test

License

Project is based on MIT License. You can read about the license <a href="LICENSE">here</a>.

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from syqu22/spring-boot-shop-sample via the GitHub API.Last fetched: 6/13/2026