Skip to content

gEugen/TopJavaGraduationProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge

Voting Management System for Restaurants


Design and implement a REST API using Hibernate/Spring/SpringMVC (or Spring-Boot) without frontend.

The task is:

Build a voting system for deciding where to have lunch.

  • 2 types of users: admin and regular users
  • Admin can input a restaurant and it's lunch menu of the day (2-5 items usually, just a menuItem name and price)
  • Menu changes each day (admins do the updates)
  • Users can vote on which restaurant they want to have lunch at
  • User can vote for the first time during the day each day
  • Only one vote counted per user
  • If user votes again the same day:
    • If it is before 11:00 we assume that he changed his mind.
    • If it is after 11:00 then it is too late, vote can't be changed

Each restaurant provides a new menu each day.


  • Stack: JDK 17, Spring Boot 2.7, Lombok, H2, Caffeine Cache, Swagger/OpenAPI 3.0
  • Run: mvn spring-boot:run in root directory.

REST API documentation
Credentials:

Admin: [email protected] / admin
User1:  [email protected] / password1
User2:  [email protected] / password2
User3:  [email protected] / password3
User4:  [email protected] / password4
User5:  [email protected] / password5
User6:  [email protected] / password6

About

TopJava 26

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages