This project was written to gain understanding about writing a java backend service using spring security and jwt token session handling. The api is written for a simple system in which you can make an account, login, add games to the database and later edit them.
- Download the project.
- Assuming you are using intellij as your IDE then choose "import porject" from the welcome screen.
- On the import project screen tick the "Import project from existing sources" and then choose gradle.
- Because we are using Lombok you need to make sure that annotation processing is enabled in the settings. For that navigate to "Settings -> Build -> Compiler -> Annotation Processors" and tick the enable option.
- Run the gradle build scripts.
- Run the project.
- Java Spring boot
- H2 database
- Spring security
- JWT
- Mockito
- Lombok
- Gradle
- Spring Data JPA
If you wish to deploy this application to your server I have written a detailed guide on the subject.