Coder Social home page Coder Social logo

retailsustainability-pem-notification-service's Introduction

Notification Service

The Notification Service is a Spring Boot application that provides message details functionalities. It utilizes MongoDB for data storage and integrates with Swagger for API documentation.

Table of Contents

Features

  • Saving Messages to MongoDB database
  • Getting the User Message List
  • Getting the count of New Messages
  • Getting the Messages of a User
  • Deleting the Messages
  • APIs are authenticated using JWT token
  • API documentation using Swagger
  • Error messages for common scenarios

Technologies Used

  • Java 17
  • Spring Boot 3.0.5
  • MongoDB
  • Swagger (OpenAPI)
  • Actuator
  • Feign Client
  • Jacoco

Getting Started

To get started with the Product Service, follow these steps:

  1. Clone the repository: git clone https://github.com/PublicisSapient/retailsustainability-pem-notification-service.git
  2. Clone the repository: git clone https://github.com/PublicisSapient/retailsustainability-pem-common-framework.git
  3. Navigate to the common framework directory: cd common-framework
  4. Build the common-framework: mvn clean build
  5. Configure the environment variables to your environment (see Configuration)
  6. Build the project: mvn clean build
  7. Navigate to the target directory: cd target
  8. Run the application: java -jar notification-service.jar

The service will start running on the configured port (default: 9006). You can access the APIs using the base URL http://localhost:9006/api/v1/notification-service and Swagger UI: http://localhost:9006/api/v1/notification-service/swagger-ui

Configuration

The application can be configured using the following properties:

Ensure that you have MongoDB installed and running before starting the service.

API Documentation

The notification Service provides API documentation using Swagger(Open API). You can access the Swagger UI by navigating to http://localhost:9006/api/v1/notification-service/swagger-ui in your web browser. This UI provides detailed information about the available API endpoints, request/response schemas

Error Messages

The application defines a set of error messages for common scenarios. These messages are configurable and can be found in the application.yml file. You can customize the error messages according to your needs.

Contributing

Contributions to the Notification Service are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

  1. Fork the repository.
  2. Create your feature branch: git checkout -b feature/my-new-feature.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/my-new-feature.
  5. Submit a pull request.

License

The Notification Service is open-source and available under the MIT License.

Feel free to modify and adapt the code to suit your needs.

retailsustainability-pem-notification-service's People

Watchers

Anthony McLin avatar Zoltan Hawryluk avatar Bastian avatar David Jackson 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.