Giter Site home page Giter Site logo

sayeedblog's Introduction

Microservices Blog Project

This project demonstrates a microservices architecture for a blogging platform using Spring Boot, MongoDB, and various Spring technologies.

Project Overview

The project consists of several microservices that collectively provide a blogging platform with functionalities such as post management, user authentication, and notifications.

Modules

  1. PostService: Manages posts, comments, likes, and search functionality.
  2. UserService: Manages user profiles, authentication, and user-related operations.
  3. NotificationService: Manages notifications and alerting users about activities.

Getting Started

To run the project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/SayeedBlog.git
    cd /SayeedBlog
  2. Build the project:

    mvn clean install
  3. Run each microservice:

    • PostService:

      cd PostService
      mvn spring-boot:run
    • UserService:

      cd UserService
      mvn spring-boot:run
    • NotificationService:

      cd NotificationService
      mvn spring-boot:run
  4. Access APIs:

  5. Documentation:

    Swagger/OpenAPI documentation can be accessed at:

Project Structure

The project is organized into the following modules:

1. PostService

Structure:

PostService
├── src
│   ├── main
│   │   ├── java/com/strong/PostService
│   │   │   ├── controller     // REST controllers
│   │   │   ├── model          // Entity classes (Post, Comment, Like, Search)
│   │   │   ├── repository     // Spring Data MongoDB repositories
│   │   │   ├── service        // Service classes (PostService, CommentService, etc.)
│   │   │   └── PostServiceApplication.java  // Spring Boot application main class
│   │   └── resources
│   │       ├── application.properties  // Configuration properties
│   │       └── static
│   └── test
│       └── java/com/strong/PostService
│           └── (Unit and Integration Tests)
└── pom.xml

2. UserService

Structure:

UserService
├── src
│   ├── main
│   │   ├── java/com/strong/UserService
│   │   │   ├── controller     // REST controllers
│   │   │   ├── model          // Entity classes (User, Role, AuthRequest, AuthResponse)
│   │   │   ├── repository     // Spring Data MongoDB repositories
│   │   │   ├── service        // Service classes (UserService, AuthenticationService, etc.)
│   │   │   └── UserServiceApplication.java  // Spring Boot application main class
│   │   └── resources
│   │       ├── application.properties  // Configuration properties
│   │       └── static
│   └── test
│       └── java/com/strong/UserService
│           └── (Unit and Integration Tests)
└── pom.xml

3. NotificationService

Structure:

NotificationService
├── src
│   ├── main
│   │   ├── java/com/strong/NotificationService
│   │   │   ├── controller     // REST controllers
│   │   │   ├── model          // Entity classes (Notification, NotificationTemplate)
│   │   │   ├── repository     // Spring Data MongoDB repositories
│   │   │   ├── service        // Service classes (NotificationService, EmailService, etc.)
│   │   │   └── NotificationServiceApplication.java  // Spring Boot application main class
│   │   └── resources
│   │       ├── application.properties  // Configuration properties
│   │       └── static
│   └── test
│       └── java/com/strong/NotificationService
│           └── (Unit and Integration Tests)
└── pom.xml

Technologies Used

  • Spring Boot: Framework for creating microservices.
  • Spring Data MongoDB: Integration with MongoDB for data storage.
  • Spring Security: Authentication and authorization.
  • Swagger/OpenAPI: API documentation and testing.
  • Maven: Dependency management and build automation.

Contributing

Feel free to contribute to this project by forking and creating pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

sayeedblog's People

Contributors

sayeedajmal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.