Skip to content

CoffeeShop application built with Spring Boot, PostgreSQL, Angular, maildev, Sessions and CSRF tokens.

License

Notifications You must be signed in to change notification settings

confusedGustas/CoffeeShop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoffeeShop Application

A simple CoffeeShop application built with Spring Boot, PostgreSQL, Angular, maildev, Sessions and CSRF tokens.

Features

  • Admin Login
  • Product listing, editing and deletion
  • About Us and Contact page customization
  • JSESSIONID based authentication
  • CSRF tokens for XSS attacks
  • Contact Us trough email option

Prerequisites

Make sure you have the following tools installed before setting up the application:

Setup

  1. Clone the repository:

    git clone https://github.com/confusedGustas/CoffeeShop
    cd CoffeeShop
  2. Configure PostgreSQL:

    • Create a new database (coffeeshop)
    • Leave the default settings as it is, Spring Boot will create the needed tables.
    • If you want configurate the settings, you can do it so by accessing the application.yaml file
    url: jdbc:postgresql://localhost:5432/coffeeshop
    username: postgres
    password: postgres
    
  3. Build and run the application:

    npm install
    npm i maildev
    maildev
    mvn spring-boot:run
    cd frontend
    ng serve
    • Spring Boot backend will start on http://localhost:8080
    • Angular frontend on http://localhost:4200
    • maildev on http://localhost:1080

Usage

  • Access the application through your browser, Login with the default credentials (Admin/Admin). The password can be changed through the browser.
  • Contact, About and Home pages will be empty by default. You need to log in and edit these areas through the admin panel.
  • Contact page will contain a "Contact us" option. To test it out, fill out the blanks and visit maildev to check out the received message.

License

This project is licensed under the MIT License.

About

CoffeeShop application built with Spring Boot, PostgreSQL, Angular, maildev, Sessions and CSRF tokens.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published