This repository contains the source code for the CVE Consumer Web Application. The application is designed to consume and display Common Vulnerabilities and Exposures (CVE) data.
Before building and deploying the application locally, ensure you have the following prerequisites installed:
- Docker: For containerizing the application. Install Docker
- Kubernetes: For deploying the application in a Kubernetes cluster. Install Kubernetes
- Helm: For managing Kubernetes applications. Install Helm
- Kafka: Access to a Kafka broker and topic for consuming health check results.
- PostgreSQL: A running PostgreSQL database instance for storing health check results.
- Configuration: Kafka and PostgreSQL connection details should be provided externally, utilizing Secrets and ConfigMap when running in a Kubernetes cluster.
Clone the repository to your local machine:
git clone https://github.com/<your-org>/webapp-cve-consumer.git
cd webapp-cve-consumer
## Configuration
Configure the application using the following environment variables:
DB_HOST: your_db_host
DB_PORT: your_db_port
DB_NAME: your_db_name
DB_PASSWORD: your_db_password
DB_USER: your_db_username
DB_SCHEMA: your_db_schema
KAFKA_TOPIC: your_kafka_topic
KAFKA_BROKER: your_kafka_broker