Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Twitter application

This is a conceptual representation of the Twitter (X) application created for learning puproses for students in Algonquin College for course CST8277 "Enterprise Application Programming". The goal of this project is to demonstrate pros and cons of the microservice architecture in action and let student create the same application by themselves in 4 major steps:

  1. General design
  2. Data model
  3. Impelementation
  4. Securing applications

Build & Run

To build the project, follow the steps below.

  1. Install prerequisites
  1. Для работы kubernetes потребуется загрузка на докер хаб. Для этого нужно зарегистрироваться на https://hub.docker.com и с помощью команды docker login авторизоваться локально.

  2. Выполните

cp .env.local .env
  1. Установите свои значения указанных переменных в .env
GRADLE_PATH=
DOCKER_HUB_LOGIN=
  1. Build java apps
bin/build
  1. Start db
docker-compose up
  1. Create database schema
bin/schema
  1. Создайте кластер миникуба
bin/kube_setup
  1. Выполните minikube ip

  2. Пропишите в .env

UMS_APP=http://<ip из прошлого шага>:32000
  1. Выполните для развертывания приложения с настроенным .env
bin/kube_deploy

Verify How It Works

curl -v http://`minikube ip`:32001/messages/subscriber/70a64b54-43c3-4c18-bbec-64590ff7e0cc

License

This repository is licensed under the BSD 2-Clause License.

About

Лабораторная работа по микросервисам

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages