This is a Nodejs based boilerplate which runs an HTTP Server configured to answer the endpoints defined in
the challenge you received. All endpoints are configured in index.js
and if you go deeper to the controllers
for each route, you will find a TODO comments where you are free to implement your solution.
Node.js: Ensure you have Node.js installed, preferably version 8.x or higher.
To run the application locally, run the following commands:
npm install
npm start
-
Kubernetes Cluster: You need access to a Kubernetes cluster. You can use a local setup like Minikube for this.
-
kubectl: Make sure you have kubectl installed and configured to manage your Kubernetes cluster.
To run the application, follow these steps:
-
Create Deployment: Apply the deployment manifest to create instances of the application in the cluster. Run the following command from the root of the project:
kubectl apply -f ./k8s/deployment.yaml
Make sure Minikube or a similar tool is running.
-
Get Access URL: Once the deployment is finished, you can obtain the access URL for the application using the following command:
minikube service chat-api-service --url | awk -F/ '{print $3}'