This repository contains the backend implementation for the Self Assessment Test App. This backend service is responsible for extracting questions from Avien Cloud based on the test name, sending emails using an SMTP server, and deploying the application using Kubernetes and Docker.
- SpringBoot BackEnd Code
- Docker
- Kubernetes
- SMTP server credentials
- Avien Cloud account and credentials
git clone [https://github.com/somshivgupta/SPE_BackEnd.git]
cd self-assessment-test-app-backend
Create a .env file in the root directory of the project and add the following variables:
AVIEN_CLOUD_URL=jdbc:mysql://avnadmin:AVNS_kQdTw90A2qOTdVbgh3n@mysql-spemajor-spemajor.l.aivencloud.com:12264/test
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
[email protected]
EMAIL_PASS=hdgaqtaxaodbkopv
deployment.yaml: Contains the deployment configuration for Kubernetes.
service.yaml: Contains the service configuration for Kubernetes.
To deploy the application on a Kubernetes cluster:
kubectl apply -f deployment.yaml
kubectl apply -f service.yaml
kubectl get pods
kubectl get services