niksolaz / server-books

server for books times and google

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server-Books

A back-end server in Node.js that uses APIs made by NY Times (https://developer.nytimes.com/apis) and Google Books (https://developers.google.com/books/docs/overview) and display 2 endpoints:

  • 1st Endpoint: Returns the list of the various book lists present in the NY Times systems.
  • 2nd Endpoint: Given the code of a list, it returns the list of books present in that list and enriches the content with the link to the preview of the book on google books.

Install

Install package:

npm install

or

yarn install

Create your env file and get API key or Other service that you want.

Starting server:

yarn dev

ENDPOINTS

  • basic: /

NY Times:

Google Books:

  • Go to https://developers.google.com/books/docs/overview and get API_key
  • Endpoint welcome: /gbooks
  • Endpoint books: /gbooks/books/{name-of-research}
  • Endpoint book: /gbooks/books/{name-of-research}/{bID}
  • Endpoint free e-books: /gbooks/books/{name-of-research}/free-ebook
  • Endpoint paid e-books: /gbooks/books/{name-of-research}/paid-ebook
  • Endpoint all e-books: /gbooks/books/{name-of-research}/ebook

About

server for books times and google

License:MIT License


Languages

Language:JavaScript 96.6%Language:HTML 3.4%