REST service to vote for a restaurant
REST service for creating a restaurant, as well as a menu for them. And after that, users can vote for the restaurant.
If you will not be using docker, you will need the postgreSQL database. To build jar you have to use maven
./mvnw -N package
Subject area
If you are not using docker: The database structure is generated automatically by liquibase so there is no need to create anything manually. You need to have just an empty database.
Config for app
spring:
liquibase:
enabled: true
datasource:
# (address of database)
url:
username:
password:
# (dirver for database)
driver-class-name:
jpa:
show-sql: true
hibernate.ddl-auto: none
security:
jwt:
# 128-bit key to encrypt the jwt token
secret:
# token expiration time in seconds (default: 1 week)
expiration: 604800
logging:
level:
root: info
web: error
sql: error
file:
# log file name with path relative to directory 'src'
name: src/app.log
max-history: 1
pattern:
# log file view pattern
file: '%d{HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n'
# activating controllers profiling and outputting them to the logs
profiling:
all:
controllers: false
You can use UI access after running the application from the link: https://localhost:8080/swagger-ui.html