This repository contains the source code for a project developed as part of the Distributed Systems module during the 1st semester of our 3rd year.
Name | |
---|---|
Reezan S.A | it21042324@my.sliit.lk |
Achchige R.A.N.R | it21102264@my.sliit.lk |
Padmasiri P.G.S.M | it21078996@my.sliit.lk |
Abeygunasekara P.W.A.B.N | it21104176@my.sliit.lk |
This project can be run either locally or using the provided Kubernetes file (rbns.yaml).
Before running the project, ensure that you have Node.js and npm installed on your system. You can check if you have these installed by running node -v
and npm -v
in a terminal. If you do not have these installed, you can download them from here.
- Open 5 terminals in VS Code.
- In the first 4 terminals, navigate to the
backend
directory within theProject
directory.- In each terminal, navigate to one of the service directories (
userService
,storeService
,productService
, orpaymentService
) and runnpm install
to install the necessary dependencies. - Once the dependencies have been installed, run
npm run dev
to start the service.
- In each terminal, navigate to one of the service directories (
- In the fifth terminal, navigate to the
frontend
directory within theProject
directory.- Run
npm install
to install the necessary dependencies. - Once the dependencies have been installed, run
npm start
.
- Run
- Open a terminal in VS Code and navigate to the
Project
directory. - Ensure that Docker Desktop is running.
- Run
kubectl apply -f rbns.yaml
. - Wait for some time until all components have started, then open your browser and navigate to
http://localhost:3000
.