E-commerce platform built with Spring Boot framework. Has functionality for ordering already existing or creating your own burger designs, adding them to the cart, creating and validating orders, using promo codes to get a discounts. Spring Security is used to authorize existing users to the system or create new accounts.
Click here
Spring:
- Spring Boot
- Spring Boot Web
- Spring Boot Validation
- Spring Boot Security
- Spring Data Jpa
Database:
- H2 (for development purposes)
- PostgreSQL
Web interface:
- Thymeleaf
- Bootstrap
Easy start:
- Clone the repo
git clone https://github.com/Serhx4/burger-hub.git
- Change active profile to
dev
inapplication.properties
to run with pre-loaded in-memory H2 databasespring.profiles.active=dev
Or:
- Change active profile to
test
inapplication.properties
to run with PostgreSQL databasespring.profiles.active=test
- Set up your database credentials in 'application-test.properties'
spring.datasource.username=your_username_here spring.datasource.password=your_password_here
- On the start CommandLineRunner in
DevelopmentConfig.java
will preload in-memoryjdbc:h2:mem:burger-hub
H2 database (dev
profile) - Or empty
burger-hub-test
PostgreSQL database (test
profile) with all necessary data to run application - After app was started, go to
http://localhost:8080/
- Use username
chef
and passwordp
to log in as Burger Hub Chef. Chef can create new burger designs that will be available for all users - Or register as new user through registration form
- You can check in-memory database at
localhost:8080/h2-console
. Useadmin
username andp
password to log in intojdbc:h2:mem:burger-hub
H2 database