Skip to content

A Spring Boot API for managing bookings with: Secure auth (JWT + Keycloak OAuth2) MongoDB database RESTful endpoints for CRUD operations Production-ready setup (Lombok, Maven, Spring Security) Ideal for hotels, appointments, or rental services. Supports both JWT tokens and Keycloak single sign-on

Notifications You must be signed in to change notification settings

mohammedsohail-dev/Reservation-SpringBoot-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reservation System - Spring Boot Backend

Java Spring Boot Maven MongoDB Keycloak

A secure Spring Boot backend application for reservation management with MongoDB persistence and Keycloak/ JWT authentication.

Key Features

  • Secure REST API with:
    • JWT authentication (jjwt 0.11.5)
    • Keycloak integration (21.0.0)
    • OAuth2 resource server
  • MongoDB data persistence
  • Spring Security with OAuth2 client/resource support
  • Developer Friendly:
    • Lombok for boilerplate reduction
    • Spring Boot DevTools
    • Maven wrapper included

Technology Stack

  • Core: Java 11, Spring Boot 2.7+
  • Database: MongoDB
  • Security:
    • Spring Security 5.7.8
    • Keycloak 21.0.0
    • JJWT 0.11.5
  • Tools:
    • Lombok
    • Maven 3.8.1

UML Diagram

image

Getting Started

Prerequisites

  • Java 11 JDK
  • Maven 3.8+
  • MongoDB 5+
  • Keycloak server (optional) delete security folder for this

Configure your MongoDB and Keycloak in application.properties:

  • spring.data.mongodb.uri=mongodb://localhost:27017/reservations
  • keycloak.realm=your-realm
  • keycloak.auth-server-url=http://localhost:8080/auth
  • keycloak.resource=your-client-id

Build and run:

  • mvn clean install
  • mvn spring-boot:run

About

A Spring Boot API for managing bookings with: Secure auth (JWT + Keycloak OAuth2) MongoDB database RESTful endpoints for CRUD operations Production-ready setup (Lombok, Maven, Spring Security) Ideal for hotels, appointments, or rental services. Supports both JWT tokens and Keycloak single sign-on

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages