- Docker and Docker Compose installed
- Minikube and kubectl installed for Kubernetes deployment
- Node.js and npm installed (for any local dependency management)
- Git installed (for cloning the repository)
-
Clone the repository:
https://github.com/GIHAA/learnify
-
Navigate to the project directory:
cd learnify
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Run the React application (optional for local testing without Docker):
npm start
-
Navigate to the backend directory:
cd backend
-
Build the Docker images:
docker-compose build
-
Launch the containers:
docker-compose up
-
Start Minikube:
minikube start
-
Apply the Kubernetes configurations:
kubectl apply -f deployment
-
Enable external access to the services:
minikube tunnel
- Once the servers are running, the frontend should be accessible via the browser on the host machine at
http://localhost:3000
(adjust port as necessary based on your React app's configuration).