This is a small React project that makes use of the Google Books API to get a particular book using volumeId.
The project has the following Routes:
/- Users can sign in with Google on this page/search- Users can search a book by its title and get a list of results from theGoogle books API/search/:id- Users can retreive book details based onidwhich is unique for every book in theGoogle Books API/api/history- Users can see the history of their searches stored in theMongoDBdatabase.
- Users need to be signed in with Google to access the
searchandapiroutes - The queries are stored in the
MongoDBdatabase once every 5 searches
REACT_APP_GOOGLE_CLIENT_ID - Client Id for OAuth Authentication
NOTE: This is not a standalone application, it needs an express server and a mongodb database to work
-
Clone the repo.
git clone https://github.com/ag2byte/Bookserach-ui/tree.git -
Install the dependencies:
npm install -
Run the application:
npm start
By default the application should run on localhost:3000

