https://driver-advisor-rest-api.herokuapp.com/
Application for drivers who have the opportunity to improve their driving technique in theory. The user has access to the content of advice related to the selected issue. The user can recommend them, and if the issue includes training, he can solve them for which he receives in return a certain number of points, enrolling in his account advice. Training and tips may include photos, gifs or a video.
- Spring Boot
- Spring Security
- Spring Data JPA
- Hibernate
- MySQL
To run the application, insert in the application.properties file located in src/main/resources:
- database connection details
Provide your login to connect to the local database:
spring.datasource.username=
Provide your password to connect to the local database:
spring.datasource.password=
- complete the data needed to log in to your email address. It must be a working Gmail account. Note: due to the not secure mechanism used when logging in, it is necessary to disable additional security - https://myaccount.google.com/lesssecureapps)
Provide your email address:
spring.mail.username=
Provide your email password:
spring.mail.password=
-
run application
- using maven: mvn package spring-boot:run
- with java -jar command: java -jar target/portfoliolab-driver-0.0.1-SNAPSHOT.jar
- IDE: run DrivingAdvisorApplication.java class
https://driver-advisor-rest-api.herokuapp.com/v2/api-docs
To facilitate the presentation of the project for quick login you can use:
- a user with the role "USER"
username: user
password: user
He has access to the endpoints: "user/create", "/user/update" and all others except the others "/**/create", "/**/update", all "/**/remove" and "/role/**"
- or a user with the role "ADMIN"
username: admin
password: admin
He has access to all endpoints
- you can create your own user with free access to the endpoint "/user/create" whose default role will be "USER"
Prepared by the CodersLab bootcamp