An open API service indexing awesome lists of open source software.

https://github.com/codemage66/subscription-application

Three microservices for use in the subscription applications.
https://github.com/codemage66/subscription-application

docker eureka-client eureka-server java java11 postgresql spring-boot spring-security

Last synced: 6 months ago
JSON representation

Three microservices for use in the subscription applications.

Awesome Lists containing this project

README

          

# Subscription System

A system that contains three microservices for use in the subscription applications.

### Design Flow
![alt text](https://github.com/manuelernesto/subscription-system/blob/main/flow.png)

### Microservice
- Public Service: Backend for Frontend microservices.
- Subscription Service: microservices that implements subscription logic, includind persistente of data and email notification to confirm process is completed.
- Email Service: microservice implementing email notifications.

### Tech Stack
- Spring Boot
- Security : Basic Auth Spring Security
- Netflix Eureka
- Swagger
- Docker
- PostgreSQL
- Kafka
- Java 11
- Project Lombok

### API Docs
- Public service: http://localhost:8080/adidas/api/swagger-ui.html
- Email service: http://localhost:8082/adidas/api/swagger-ui.html
- Subscription service: http://localhost:8081/adidas/api/swagger-ui.html

### Postman - API Examples
- Download de postman file in the docs folder and import to Postman

### Installation
This application is built using maven (make sure the database and eureka-server is up)
```sh
$ cd email-service
$ mvn spring-boot:run
```
```sh
$ cd subscription-service
$ mvn spring-boot:run
```
```sh
$ cd eureka-server
$ mvn spring-boot:run
```
```sh
$ cd public-service
$ mvn spring-boot:run
```

### Docker
```sh
docker-compose up --build
```