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"
}
- Install Docker
docker pull ghcr.io/gimse/my-quote-db/my-quote-db:1.0.0
docker run -p 43444:43444 ghcr.io/gimse/my-quote-db/my-quote-db:1.0.0
- Open for example: http://localhost:43444/api/v1/random_quote?category=life&max_length=40
git clone ...
cd my-quote-db
- Install npm
npm install
npm debug
,npm start
ornode index.js
- Install Docker
build -t my-quote-db .
run -p 43444:43444 my-quote-db
- Test: http://0.0.0.0:43444/api/v1/random_quote?category=life
{"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"}
npm install express --save
npm install --save random
npm install nodemon --save