Giter Site home page Giter Site logo

otus_project's Introduction

Описание проекта

Приложение закупки.

Приложение предоставляет сервис закупок, в котором есть Заказчики, которые создают закупки и есть Участники, которые участвуют в закупках.

  1. Заказчик создает закупку
  2. Участник подает заявку на закупку
  3. Когда участники подают заявку, у них блокируется определенная сумма дс(10% от начальной цены закупки).
  4. Когда наступает окончание подачи заявок, начинаются торги, в которых Участники подают ценовые предложения (для простоты можно указать любую сумму)
  5. Когда наступает окончание торгов, закупка переходит в состояние завершена и определяется победитель, который предложил наименьшее ценовое предложение. ДС у всех участников закупки разблокируются, а у победителя снимаются.

Стек технологий

  1. Kubernetes
  2. Helm
  3. Java 17
  4. Spring Boot 3.2 и различные его компоненты(Security, Cloud, Jpa и т.д.)
  5. Flyway
  6. Kafka
  7. Prometheus(Prometheus stack)
  8. Grafana (Prometheus stack)

С4 схемы можно посмотреть в директории c4 model Sequence диаграммы можно посмотреть в директории sequence diagram

Grafana

Ingress controller
ingress.png

Purchase service
application.png

Resources
resources.png

Database
database.png

Kafka
kafka.png

Запуск приложения

Запуск сервисов kafka

kubectl create namespace abdalovalex-l10-kafka && helm install kafka-service helm/kafka --namespace abdalovalex-l10-kafka

Запуск сервиса "Аутентификации"

kubectl create namespace abdalovalex-l10-auth-service && helm install auth-service helm/auth-service --namespace abdalovalex-l10-auth-service

Запуск сервиса "Пользователи"

kubectl create namespace abdalovalex-l10-user-service && helm install user-service helm/user-service --namespace abdalovalex-l10-user-service

Запуск сервиса "Закупки"

kubectl create namespace abdalovalex-l10-purchase-service && helm install purchase-service helm/purchase-service --namespace abdalovalex-l10-purchase-service

Запуск сервиса "Торги"

kubectl create namespace abdalovalex-l10-trade-service && helm install trade-service helm/trade-service --namespace abdalovalex-l10-trade-service

Запуск сервиса "Биллинг"

kubectl create namespace abdalovalex-l10-billing-service && helm install billing-service helm/billing-service --namespace abdalovalex-l10-billing-service

Запуск сервиса "Уведомления"

kubectl create namespace abdalovalex-l10-notification-service && helm install notification-service helm/notification-service --namespace abdalovalex-l10-notification-service

Запуск тестов

newman run ./tests/tests.json

Удаление

Kafka

helm uninstall kafka -n abdalovalex-l10-kafka  
kubectl delete namespace abdalovalex-l10-kafka 

Удалить сервис "Аутентификации"

helm uninstall auth-service -n abdalovalex-l10-auth-service  
kubectl delete namespace abdalovalex-l10-auth-service
kubectl delete clusterrolebinding auth-service
kubectl delete clusterrole auth-service 

Удалить сервис "Пользователи"

helm uninstall user-service -n abdalovalex-l10-user-service  
kubectl delete namespace abdalovalex-l10-user-service
kubectl delete clusterrolebinding user-service
kubectl delete clusterrole user-service

Удалить сервис "Закупки"

helm uninstall purchase-service -n abdalovalex-l10-purchase-service  
kubectl delete namespace abdalovalex-l10-purchase-service
kubectl delete clusterrolebinding purchase-service
kubectl delete clusterrole purchase-service 

Удалить сервис "Торги"

helm uninstall order-service -n abdalovalex-l10-trade-service  
kubectl delete namespace abdalovalex-l10-trade-service
kubectl delete clusterrolebinding trade-service
kubectl delete clusterrole trade-service 

Удалить сервис "Биллинг"

helm uninstall billing-service -n abdalovalex-l10-billing-service  
kubectl delete namespace abdalovalex-l10-billing-service
kubectl delete clusterrolebinding billing-service
kubectl delete clusterrole billing-service 

Удалить сервис "Уведомления"

helm uninstall notification-service -n abdalovalex-l10-notification-service  
kubectl delete namespace abdalovalex-l10-notification-service
kubectl delete clusterrolebinding notification-service
kubectl delete clusterrole notification-service 

otus_project's People

Contributors

abdalovalex 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.