Git Product home page Git Product logo

driver-advisor-rest-api's Introduction

Driver advisor REST API

See the application on HEROKU

https://driver-advisor-rest-api.herokuapp.com/

alt text

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.

Technologies:

  • Spring Boot
  • Spring Security
  • Spring Data JPA
  • Hibernate
  • MySQL

Running the application locally

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

Swagger documentation from HEROKU

https://driver-advisor-rest-api.herokuapp.com/v2/api-docs

Spring security

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"

Sample interface for the application

Prepared by the CodersLab bootcamp

alt text

Contact

[email protected]
Linkedin

driver-advisor-rest-api's People

Contributors

zwasilonek avatar shiba07s avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.