Skip to content

This is Spring JWT Authentication sample with RestAPI. It uses PostgereSQL connection and Flyway migration.

Notifications You must be signed in to change notification settings

sabuhibrahim/spring-boot-jwt-authentication-sample

Repository files navigation

Sample jwt application with Spring Boot

This project includes authentication API's (login, register, logout, refresh, forgot-password, reset-password). It uses a PostgreSQL connection with Flyway migration. Also there is sample dockerizing example.

Installation

With docker

  • First install docker
  • (Optional) Change Postgresql auth properties on docker-compose.yml and application.properties.docker
  • Run docker-compose to build docker containers
docker-compose up -d --build

or

docker compose up -d --build
  • It takes a few minutes application to get ready. If your containers up check logs to see backend is ready
docker logs backend -f 

Without docker

  • First you need Postgresql database
  • Add your postgresql auth properties to src/main/recources/application.yml
  • Use your IDE to run application or use maven build and run
mvn install
java -jar target/spring-jwt-app.jar

If it is ready

About

This is Spring JWT Authentication sample with RestAPI. It uses PostgereSQL connection and Flyway migration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages