Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

A small coding challenge to implement an API route that queries Google Books

Notifications You must be signed in to change notification settings

docnetwork/express-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Books API ... API

For this challenge you will be creating a rudimentary Express API to query and store results from the Google Books API. This is a test of basic NodeJS and back end proficiency.

Instructions

  • Clone this repository and complete the challenge according to the specifications below.
  • Once finished, email your patch to [email protected] and we will review your submission. (Do Not Open A Pull Request)

Specifications

  • Research the Google Books Volume API to determine how to search for books given a query. You will need to create an API key. Keys are not required for making requests to the Google API, but supporting them is required for this challenge.
  • Implement an API route that accepts a search query, passes that along to the Books API (using a utility such as https, axios, or request to name a few), and responds with a collection of book results in a JSON format that includes the following details:
    • Title
    • Authors
    • Description (First 140 characters)
    • Categories
    • Publisher
    • Published Date
    • Preview Link
  • Each query should store the search query and associated responses in a database or other format (such as writing to a local file). Entries should include all of the above information as well as a timestamp of when the entry was created. DocNetwork uses and recommends PostgreSQL for a DB driver, but you are free to choose whatever you are most comfortable with.
  • When a search is run using a query that's already stored in your DB, return the results from your DB. If no existing match is found, continue with the Books API call and return those results as usual.
  • Security is important, so don't send us your Books API key! The key should be loaded in through an external file that is not included in your patch.
  • Include instructions for a reviewer to set up and use your application. This could be scripts, migration files, or just plain text describing the schema and required steps to get everything running.
  • All code must be your own. Do not plagiarize, copy, or steal code.

Resources

About

A small coding challenge to implement an API route that queries Google Books

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published