Mean stack application - Book Search in Google API and Search results in Mongo DB
Since Node.js is asynchronous by nature, All API and DB calls are performed asynchronously. I have added the application to Docker container and configured a Docker-Compose yaml file to be able to build and run the application.
- Download and extract git repository into your machine.
- Start Docker application and Make sure mongod process is not already running on the machine.
- Open Terminal or CMD and navigate to the extracted folder.
- Build the container: docker-compose build
- Run the container: docker-compose up
- Find the ip used by the docker machine: docker-machine ip
- Open the app in your browser : http://THE-IP:3000/ or http://localhost:3000/
You can Search for a Book in Google API by clicking on Search Book in Google API. Every time a Book is searched through the Google API, It is saved in the local database.
You can also Lookup Books in the DB under a particular Author or Publisher.
Cheers!