Skip to content

I offline program that contains a quote database from Kaggle.

License

Notifications You must be signed in to change notification settings

gimse/my-quote-db

Repository files navigation

My Quote Db

A offline api that contains a quote database from Kaggle(CC0 1.0).

{
    "Quote": "Don't cry because it's over, smile because it happened.",
    "Author": "Dr. Seuss",
    "Tags": [
      "attributed-no-source",
      "smiling "
    ],
    "Popularity": 0.15566615566615566,
    "Category": "life"
}

Setup Docker

Setup (Locally)

  • git clone ...
  • cd my-quote-db
  • Install npm
  • npm install
  • npm debug, npm startor node index.js

Setup Docker (Locally)

Example calls

{"Quote":"In everyone's life, at some time, our inner fire goes out. It is then burst into flame by an encounter with another human being. We should all be thankful for those people who rekindle the inner spirit.","Author":"Albert Schweitzer","Popularity":0.000153000153000153,"Category":"life"}
["life","happiness","love","truth","inspiration","humor","philosophy","science","","soul","books","wisdom","knowledge","education","poetry","hope","friendship","writing","religion","death","romance","success","arts","relationship","motivation","faith","mind","god","funny","quotes","positive","purpose"]
{"Quote":"Beware the barrenness of a busy life.","Author":"Socrates","Popularity":0.01150901150901151,"Category":"life"}

Node Packages Used

  • npm install express --save
  • npm install --save random
  • npm install nodemon --save