- Java 8
- H2 database
-
You should create environmental variables that are defined in
application-dev.properties
All these variables you can set in Intellij Idea. For instance:
spring.datasource.url=${DATABASE_URL} spring.datasource.username=${DATABASE_USER} spring.datasource.password=${DATABASE_PASSWORD} #Security jwt.tokenKey=${JWT_TOKEN_KEY}
-
If you did everything correctly, you should be able access swagger by this URL: http://localhost:8083/swagger-ui.html#/
-
Run the project (look up paragraph How to run).
-
Use the following link to open Swagger UI: http://localhost:8083/swagger-ui.html#/
-
Use POST method with
/auth/sign-up
to create an account -
Use POST method with
/auth/sign-in
to sign in. After entering the credentials you should receive access and refresh tokens -
Copy the given access token and put it into Authentication Header. Press Authorize button
Insert the given token into input field. The scheme should be like this
Bearer <given_token>
. Press Authorize button