https://github.com/capcom6-learning/node-tube
Example project from "Bootstrapping Microservices with Docker, Kubernetes, and Terraform" book
https://github.com/capcom6-learning/node-tube
Last synced: 3 months ago
JSON representation
Example project from "Bootstrapping Microservices with Docker, Kubernetes, and Terraform" book
- Host: GitHub
- URL: https://github.com/capcom6-learning/node-tube
- Owner: capcom6-learning
- License: apache-2.0
- Created: 2021-11-25T02:02:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-17T06:38:46.000Z (over 1 year ago)
- Last Synced: 2026-01-03T11:24:19.634Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 30.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history/.dockerignore
- License: LICENSE
Awesome Lists containing this project
README
# NodeTube
Example project from ["Bootstrapping Microservices with Docker, Kubernetes, and Terraform"](https://www.manning.com/books/bootstrapping-microservices-with-docker-kubernetes-and-terraform) book.
Based on Node.js + Express.
## Microservices
Project consists of 6 microservices, database and message broker:
1. Video streaming service. Gets video id from query param, retrives video info from *metadata* service and pass video stream from *video storage* service to client.
2. [Video storage service](./video-storage-azure/README.md). Uses Azure Blob storage for videos storage and returns stream by path for *video streaming* service.
3. History service. Receives "viewed" events from *video streaming* service by *RabbitMQ* and puts it into *database*.
4. MongoDB for storing data.
5. RabbitMQ for indirect communications.
6. Recommendations service. Receives "viewed" events by *RabbitMQ* and simply prints it to console.
7. [Metadata service](./metadata/README.md). Provides video metadata to other services.
8. Gateway service. Provides UI to users by fetching data from *metadata* service.

## Requirements
* docker
* docker-compose
### Optional
* make
## How to start?
Use `make up` and `make down` to start and stop containers.
Use `make dev` for development with support of live reload by nodemon.
## See also
* Go + Fiber version: https://github.com/capcom6/go-tube
* Python + Flask version: https://github.com/capcom6/py-tube