bchewy / bolabola

Bola Bola: A sleek match-booking platform using microservices and Stripe payments. Features real-time match streaming and highlights. Perfect for sports enthusiasts.
2 stars 3 forks source link
━┏┓━━━━━━━┏┓━━━━━━━┏┓━┏┓━━━━━━━━━━━━━━━┏┓━
┏┛┗┓━━━━━━┃┃━━━━━━┏┛┗┓┃┃━━━━━━━━━━━━━━┏┛┗┓
┗┓┏┛┏┓┏━━┓┃┃┏┓┏━━┓┗┓┏┛┃┗━┓┏━━┓┏━━┓┏━━┓┗┓┏┛
━┃┃━┣┫┃┏━┛┃┗┛┛┃┏┓┃━┃┃━┃┏┓┃┃┏┓┃┃┏┓┃┃━━┫━┃┃━
━┃┗┓┃┃┃┗━┓┃┏┓┓┃┃━┫━┃┗┓┃┗┛┃┃┗┛┃┃┗┛┃┣━━┃━┃┗┓
━┗━┛┗┛┗━━┛┗┛┗┛┗━━┛━┗━┛┗━━┛┗━━┛┗━━┛┗━━┛━┗━┛
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Technical Overview Diagram

Technical Overview Diagram

Workflow Diagrams

Scenario 1

Scenario 1

Scenario 2

Scenario 2

Scenario 3

Scenario 3

Quickstart

To set up this repository, run the following command in the current working directory:

docker-compose up

If you encounter issues, please use docker compose down -v to delete all volumes and existing containers. Then try the same command above.

Microservices

Base Microservices Ports:

Others

Setting up hot reload

This allows the changes you make in your local code to be immediately reflected in the containerized app. Add the following flag to your docker run command.

-v <path-to-directory-with-code>:/app

(replace the path with $(pwd) for Mac/Linux or ${PWD} for Windows if your current directory contains the code)

Docker Compose from a different file

Should you not want to test end-to-end docker compose, you can use docker-compose-test.yml, or a different name file.. use docker compose --file docker-compose-test.yml up --build to run this, and similarly, docker compose down to clean it up.

Docker Compose with an .env file

docker-compose --env-file .env up --build -d - to build with .env