- Docker
- Docker Compose
- Docker Engine
- Git
- npm
Note: All cd paths and commands are relative to the root Distributed-File-Systems folder
Clone the repo.
git clone https://github.com/Error-overloadd/Distributed-File-Systems.git
cd Distributed-File-SystemsTo run the application, we use docker compose to generate docker containers. We first need to run rabbitmq container as other containers need to connect to it.
cd backend/docker
docker compose up -d --build rabbitmqOnce the rabbitmq container is up, we can run the other containers.
docker compose up -d --buildNote: If you are running docker compose v1.x.x, you need to use docker-compose instead
cd frontendHere you can run the index.html file as a live server. You might need to change the baseUrl to point to "http://localhost:5000/" or "http://64.225.105.170/" depending on where you intend to connect, in the following lines at the beginning of frontend.js. The version you are getting is connecting to localhost currently:
let generalRequest =new axios.create({
baseURL:"http://64.225.105.170/",
crossDomain: true
})
let requestConfig = {
baseURL:"http://64.225.105.170/",
crossDomain: true
}You do not require the health monitor running to run the backend services. The health monitor periodically checks if any of our docker services is down and respawns the service that is down. Depending on the operating system you will need to rename the nginx container name. On windows machines use "docker-nginx-1" and in linux machines use "docker_nginx_1" in the required_containers list.
cd healthMonitor
npm i
npm start