Repository for managing the microservices of the Service-Oriented Software Engineering course.
This infrastructure is based on Node.js and uses Docker for container orchestration.
-
Add GitHub to known SSH hosts
Run the command in any terminal:ssh-keyscan github.com >> ~/.ssh/known_hosts
-
Create a
.env
file
In the root of the project, create a.env
file with the same variables described inenv-example.txt
. -
Clone the microservices
Navigate to thescripts
folder and run:./clone-services.sh
-
Distribute the env file
Copy theenv-example.txt
(or.env
) to each installed microservice. -
Install dependencies
Inside each microservice folder, run:npm install
-
Run the project
From the root of the project, execute:docker-compose up --build
-
If changes are made to services or volumes
Clean Docker and repeat step 4:docker system prune -af --volumes
- Node.js
- Docker & Docker Compose
- Shell scripting (
.sh
)
ese-infra/
├── scripts/
│ └── clone-services.sh
├── env-example.txt
├── .env # (You must create this file)
├── docker-compose.yml
└── README.md
- This project assumes the microservices are hosted on GitHub and require SSH access.
- All services must support
.env
configuration for environment variables.