Skip to content

KVostok/RestaurantRatingSystem

Repository files navigation

Restaurant Rating System

Codacy Badge Build Status


A voting system REST API using Hibernate/Spring/SpringMVC

Demo on Koyeb.com (Koyeb - The fastest way to deploy applications globally)

Credentials:

Username Password
user1@yandex.ru password
admin@gmail.com admin

Terms of reference

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 dish name and price)
  • Menu changes each day (admins do the updates)
  • Users can vote on which restaurant they want to have lunch at
  • Only one vote counted per user
  • If user votes again the same day:
    • If it is before 11:00 we asume that he changed his mind.
    • If it is after 11:00 then it is too late, vote can't be changed.

Each restaurant provides new menu each day.


Steps to launch app

Build:
mvn -B -DskipTests=true clean package

Using by Docker:
(By default dockerfile uses image from docker hub. To custom from local image uncomment first 8 lines in dockerfile and comment 13th line.)

  • docker build . -t restvoting
  • docker run -p 8080:8080 -t restvoting
  • Open in browser: localhost:8080

REST Api Documentation:

Api docs
Swagger-ui


Список моих пет-проектов на Github page