Skip to content

cyse7125-su24-team04/webapp-cve-processor

Repository files navigation

Web Application CVE Processor

Prerequisites

  • Go 1.16 or later
  • PostgreSQL 12 or later
  • Docker (optional, for containerized deployment)

Build Instructions

  1. Clone the repository:
   git clone https://github.com/cyse7125-su24-team04/webapp-cve-processor.git
   cd webapp-cve-processor
  1. Build the application:
go build -o cve-processor.exe main.go

Deploy Instructions

Locally

  1. Ensure PostgreSQL is running and accessible.

  2. Create a .env file varibales for database connection:

    DB_HOST="localhost"
    DB_PORT="5432"
    DB_USER="yourusername"
    DB_PASSWORD="yourpassword"
    DB_NAME="cve"
  3. Run the application:

    go run main.go
  4. Build and Run the application:

    go build -o cve-processor.exe main.go
    ./cve-processor.exe