Blog Hub is a platform designed to help you discover the best blogs from reputable authors across the globe on any topic in the field of technology. It is a React application containerized using Docker and deployed on Kubernetes along with Helm charts to manage it.
Before you begin, ensure you have the following installed on your machine:
To get a local copy of the project up and running, follow these steps:
git clone https://github.com/1Shubham7/BlogHub.git
cd BlogHub
Install the required dependencies using npm:
npm install
Now you can simply see it running locally using the following command:
npm start
The application will be accessible at http://localhost:3000
.
To run the containerized application, use Docker:
docker run -p 8080:80 1shubham7/react-helm-tutorial:1.0.0
The application will be accessible at http://localhost:3000
. Or better, we can create a local Kubernetes cluster and deploy the application there. For that first create a Kubernetes cluster using Minikube:
- Create a local Kubernetes cluster using Minikube:
minikube start
- Install the Helm chart for the application:
helm install --dry-run react-chart ./charts/react-chart
- And now you can port-forward the Kubernetes service "reach-chart to the port 8000:
kubectl port-forward svc/react-chart 8000:80
And with that we will have our blog application running in the localhost:8000
of our machine: