Ticket-store is built on a microservice architecture leveraging various tools such as Docker, Kubernetes, Skaffold, Node.js, Redis,NATS streaming server.
Ensure the following prerequisites are met before running the application:
- Docker: Install Docker to containerize and manage application dependencies.
- Minikube: Install Minikube to facilitate local Kubernetes cluster setup.
- Skaffold: Install Skaffold for automating Kubernetes resource deploymentcom.
Follow these steps to set up and run the project:
Ensure Docker daemon is running using the following command:
sudo systemctl start docker
Initialize Minikube with the following command:
minikube start
Enable Ingress for routing external traffic to Kubernetes services:
minikube addons enable ingress
To start the project, execute the following command:
skaffold dev
If Docker is not installed, download and install it from the official Docker website: Get Docker.
Install Minikube to set up a local Kubernetes cluster. Refer to the official Minikube documentation for installation instructions: Minikube Documentation.
Install Skaffold to streamline the development workflow for Kubernetes applications. Refer to the Skaffold documentation for installation instructions: Skaffold Documentation.
To ensure the integrity of the project, comprehensive testing is essential. Follow these steps to run tests for individual components:
- Navigate to each directory containing a microservice.
- Run the following commands:
npm install
npm run test
By following these steps, you'll have the App up and running locally, ready for development, testing, and further enhancements.