https://github.com/gnori-zon/voting-system-rest
REST service to vote for a restaurant
https://github.com/gnori-zon/voting-system-rest
aop jwt liquibase logging lombok maven open-api postgresql spring-boot spring-jpa spring-security swagger validation
Last synced: 5 months ago
JSON representation
REST service to vote for a restaurant
- Host: GitHub
- URL: https://github.com/gnori-zon/voting-system-rest
- Owner: gnori-zon
- License: mit
- Created: 2023-05-17T19:36:41.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-04T17:26:25.000Z (almost 3 years ago)
- Last Synced: 2025-07-17T22:06:40.118Z (12 months ago)
- Topics: aop, jwt, liquibase, logging, lombok, maven, open-api, postgresql, spring-boot, spring-jpa, spring-security, swagger, validation
- Language: Java
- Homepage:
- Size: 47.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# voting-system-rest
REST service to vote for a restaurant
## About
REST service for creating a restaurant, as well as a menu for them. And after that, users can vote for the restaurant.
## Documentation
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
```yaml
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: http://localhost:8080/swagger-ui.html
## Developers
- [gnori-zon](https://github.com/gnori-zon)