Skip to content

Burger-Hub e-commerce burger delivery platform

Notifications You must be signed in to change notification settings

Serhx4/burger-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Burger Hub

E-commerce burger delivery platform
Explore repository »

About the project

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.

Preview:

Click here

Main menu:

menu_screenshot

Product page:

product_screenshot

Login page:

login_screenshot

Burger design page:

design_screenshot

Cart:

cart_screenshot

Checkout order:

checkout_screenshot

Orders list:

orders_screenshot

Built with

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

Getting Started

Installing

Easy start:

  1. Clone the repo
    git clone https://github.com/Serhx4/burger-hub.git
  2. Change active profile to dev in application.properties to run with pre-loaded in-memory H2 database
    spring.profiles.active=dev

Or:

  1. Change active profile to test in application.properties to run with PostgreSQL database
    spring.profiles.active=test
  2. Set up your database credentials in 'application-test.properties'
    spring.datasource.username=your_username_here
    spring.datasource.password=your_password_here

Executing

  • On the start CommandLineRunner in DevelopmentConfig.java will preload in-memory jdbc: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 password p 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. Use admin username and p password to log in into jdbc:h2:mem:burger-hub H2 database