https://github.com/victorharri-chal/popeye
🐳 A basic application (similar to a strawpoll) to learn how Docker works. Done on my 1st year at Epitech
https://github.com/victorharri-chal/popeye
docker docker-compose epitech first-year-project java nodejs python
Last synced: 3 months ago
JSON representation
🐳 A basic application (similar to a strawpoll) to learn how Docker works. Done on my 1st year at Epitech
- Host: GitHub
- URL: https://github.com/victorharri-chal/popeye
- Owner: VictorHarri-Chal
- License: mit
- Created: 2021-05-28T13:07:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-28T15:19:48.000Z (about 4 years ago)
- Last Synced: 2025-02-12T11:33:20.510Z (5 months ago)
- Topics: docker, docker-compose, epitech, first-year-project, java, nodejs, python
- Language: JavaScript
- Homepage:
- Size: 1.58 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# popeye

## About The Project
The goal of this project is to containerize and define the deployment of a simple web poll applicationThere are five elements constituting the application, connected in a container :
- **Poll**, a flask Python web application that gathers votes and push them into a `Redis` queue.
- **Redis**, which holds the votes sent by the Poll application, awaiting for them to be consumed by the `Worker`.
- **Worker**, a java application which consumes the votes being in the Redis queue, and stores them into a `PostgreSQL` database
- **PostgreSQL database**, which (persistently) stores the votes stored by the Worker.
- **Result**, a Node.js web application that fetches the votes from the database and displays the. . . well, result.

## Requirements
* Docker
* Docker Compose## Getting Started
Check that Docker is installed on your computer and let's start !
Clone the repositorie and build images with Docker-compose
```sh
docker-compose up --build
```
you can see the Poll on `localhost:5000/` and the Result on `localhost:5001/`Do not forget to down containers
```sh
docker-compose down -v
```