Skip to content

SpringBootSample: A beginner-friendly Spring Boot project with JWT authentication, REST APIs, MongoDB integration, and microservices architecture for learning and real-world implementation.

Notifications You must be signed in to change notification settings

developer-shubham101/SpringBootSample

Repository files navigation

SpringBootSample

About the Project

Welcome to the SpringBootSample repository! This project serves as a comprehensive demo/example for beginners and intermediate developers who want to dive into Spring Boot development. It contains all the essential components, tools, and patterns required to build enterprise-level applications using Spring Boot.

The repository is structured to provide a solid foundation for learning and implementing best practices in building REST APIs, authentication, microservices, and more. Whether you're starting with the basics or looking to enhance your knowledge with advanced features, this project has something for everyone.


Repository Overview

Standalone Repository: spring-boot-bootcamp

  • A self-contained project covering all the essential topics to get started with Spring Boot.
  • Includes features such as:
    • JWT Authentication
    • Basic REST API implementation
    • MongoDB integration

This is ideal for developers looking to learn the foundational concepts of Spring Boot.

Microservices Repositories (Microservices Architecture)

The following repositories demonstrate the breakdown of a single large application into independent microservices:

  • api-gateway: Acts as the entry point for all incoming requests. Manages routing and API gateway functionalities.
  • sb-blog-business: Handles core business logic and operations related to blogs.
  • sb-blog-comments: Manages all operations related to blog comments.
  • sb-blog-info: Provides additional metadata and information for blogs.
  • sb-user: Manages user authentication, profiles, and related operations.
  • service-discovery: Implements service registration and discovery, enabling seamless communication between microservices.

Together, these microservices demonstrate a complete and scalable architecture suitable for real-world enterprise applications.


Features

  • Beginner-Friendly: Covers the fundamental concepts for newcomers to Spring Boot.
  • Enterprise-Grade Patterns: Implements advanced concepts like microservices architecture, service discovery, and API gateway.
  • Security: Includes JWT-based authentication for secure APIs.
  • Database Integration: Demonstrates how to integrate with MongoDB.
  • Scalability: Provides an example of splitting a monolith application into microservices.

Full Documentation

Detailed documentation is available for your reference. It provides step-by-step instructions, code explanations, and use-case scenarios.

You can access the documentation through the following links:


Getting Started

Prerequisites

  • Java 8+ installed
  • Maven installed
  • MongoDB up and running
  • Basic understanding of Spring Boot and REST APIs

Running the Project Locally

  1. Clone the repository:
    git clone https://github.com/developer-shubham101/SpringBootSample.git

About

SpringBootSample: A beginner-friendly Spring Boot project with JWT authentication, REST APIs, MongoDB integration, and microservices architecture for learning and real-world implementation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published