Google Books Search is an application built on the MERN stack. It allows users to search for books from the Google Books API, and provides links to view the book, or save it in the application's database.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
To begin, clone this repository to your local system.
git clone https://github.com/wparks08/google-books-search.git
You must also have the following installed on your system to run the application:
Node
MongoDB
First, install node packages.
npm i
--or--
npm install
You will also need a Google Books API key. Check the link here for instructions on how to get one.
After you have the API key, create a file called .env
in the root project folder. Enter your API key as follows:
GOOGLE_BOOKS_API_KEY=[your api key]
Once you have completed these steps, run npm start
from the root directory. This will launch the Express server and React app concurrently.
Go to localhost:3000
to access the app.
This app is set up to be deployed on Heroku. Using the Heroku CLI, follow these steps to deploy:
heroku create
heroku addons:create mongolab
git push heroku master
- Node.js - JavaScript Runtime
- NPM - Dependency Management
- Express - Web framework for Node.js
- Mongoose - ORM for MongoDB
- Axios - For asynchronous API calls
- socket.io - Notifications API
- MongoDB - NoSQL database
- React - Front end library
- Material UI - Material Design UI Framework for React
- React Router DOM - For SPA routing
- Will Parks - Full Stack - wparks08