Skip to content

Appropriate-Solutions-Inc/cachenvd

Repository files navigation

Cache NVD

TODO

  • Add description

Commands

# Run server locally
mix run --no-halt

# Curl example
curl -vvv https://services.nvd.nist.gov/rest/json/cves/2.0\?cveId\=CVE-2023-4030
curl -vvv http://localhost:4000/rest/json/cves/2.0\?cveId\=CVE-2023-4030

Scripts

mix amnesia.create -d CacheNvdDatabase --disk
mix amnesia.drop -d CacheNvdDatabase

Installation

If available in Hex, the package can be installed by adding cachenvd to your list of dependencies in mix.exs:

def deps do
  [
    {:cachenvd, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/cachenvd.