This blog talks about Computer, Security, Information technology, SEO, Video, etc. Now you can find all free things, Information Technology and Tips and Trick in this blog. JOIN ME KANG ASU

Breaking

Friday 28 February 2020

CVE Api

Kang Asu
CVE Api - Parse & filter the latest CVEs from cve.mitre.org

Parse & filter the latest CVEs from https://cve.mitre.org.

  • Download the project
  • bundle install
  • ruby rest.rb

Requirements
  • Ruby
  • Docker (Optional, only required if you want to run through a container.)

Environment
You can switch between prod & dev at config/environment.rb
You need to create one yourself, an example can be found here.

Healthcheck
The url will return a status code of 200 which means the api is healthy.
If 200 is not shown then you should assume there is something wrong.
http://localhost:4000/status

Manage image

Access
You can access the api via http://localhost:4000/
You should be able to view the index page from the url.

Build image
docker build . -t cve-api

Run image
docker run -p 4000:4000 -d cve-api

Get id
docker ps

Stop image
docker stop ID

Remove image
docker rmi cve-api


Regards
Kang Asu

No comments:

Post a Comment

# Silahkan berkomentar, bertanya dan kritik dengan sopan
# Disini anda boleh menyisipkan Link di kolom komentar
# Tetapi akan saya moderasi atau Review terlebih dahulu tiap komentar
# Jangan sampai komentar anda mengandung SPAM.

# Terima Kasih - Regards Muhammad Sobri Maulana