This project is a ReactJS-based clone of the Nike ecommerce website. It aims to replicate the core functionality and design of the original site, providing users with a familiar experience.
To run in local machine using Minikube
Install Minikube Kubectl and Docker
For Arch-Based:
- Use an AUR helper like yay or paru
yay -Syu minikube kubectl docker
- Secondly
sudo systemctl start docker
sudo usermod -aG docker $USER
- Lastly
minikube start --kubernetes-version=latest
For other distributions, you can install Docker and Kubectl using your package manager.
And for Minikube do the following:
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start --kubernetes-version=latest
Enable ingress for DNS:
minikube addons enable ingress
minikube addons enable ingress-dns
To deploy your ReactJS application with Docker and Kubernetes, you can follow these steps:
Firstly:
git clone https://github.com/mohsin-786/nike-clone-ingress.git
Secondly:
cd nike-clone-ingress; cd k8s
Thirdly:
kubectl apply -f <file-name>
After the Deployment is complete do the following:
kubectl get ingress
And from the output of the above command Note the HOSTS and ADDRESS fields
And then edit the hosts file:
sudo vi /etc/hosts
And then add the ADDRESS and HOSTS from the above command as in this example:
127.0.0.1 localhost