Skip to content

v1.0.0

Choose a tag to compare

@SteveHoareau18 SteveHoareau18 released this 01 Jul 10:54
· 3 commits to master since this release
0b5239c

Getting Started

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

SpringRestfullStatelessStarter

A Spring Restfull (using JWT) & Stateless starter [UP TO DATE]

Based from
  • https://medium.com/@tericcabrel/implement-jwt-authentication-in-a-spring-boot-3-application-5839e4fd8fac
  • https://github.com/tericcabrel/blog-tutorials/tree/main/springboot-jwt-auth

How to run ?

Recommended

  • MySQL Server 8.2
    Required
  • JDK 22
  • MySQL Server (for other, edit build.gradle.kts)

This project is using Gradle Kotlin, please see `build.gradle.kts`

Please, before run, check application.properties

Custom with your values:

  • server.port (Facultative to edit)
  • spring.datasource.url
  • spring.datasource.username
  • spring.datasource.password
  • spring.jpa.hibernate.ddl-auto (Facultative to edit)
  • spring.jpa.open-in-view=false (Facultative)
  • security.jwt.secret-key
  • security.jwt.expiration-time (Facultative to edit)

To generate your own SECRET_KEY

node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

(Source)[https://dev.to/tkirwa/generate-a-random-jwt-secret-key-39j4]

Run the project

gradlew bootRun

Full Changelog: https://github.com/SteveHoareau18/SpringRestfullStatelessStarter/commits/v1.0.0