This is a MERN book search and save app built with a GraphQL server. Live demo here.
The purpose of this task was to take a fully functioning Google Books API search engine built with a RESTful API, and refactor it to be a GraphQL API built with an Apollo Server. This app is built using the MERN stack. It was already set up to allow users to save book searches to the back end. This task involved the following:
- Setting up an Apollo Server to use GraphQL queries and mutations to fetch and modify data, replacing the existing RESTful API.
- Modifying RESTful API authentication middleware so that it works in the context of a GraphQL API.
- Created an Apollo Provider so that requests can communicate with an Apollo Server.
Install dependencies using:
npm install
Need to have MongoDB and MongoDB Compass installed locally to run the app. Alternatively, you can also refer to the live app.
The application will then be invoked by using the following command:
npm run develop
Below depicts functionality of the main app features:
- GraphQL
- MongoDB
- Express.js
- React
- Node.js
- Text editor (VS Code recommended)
- An Internet browser (Google Chrome recommended)
- MongoDB and MongoDB to be locally installed
- MongoDB Atlas for live deployment
- Heroku
Project is: complete.
Created by -@moedaaboul
- Feel free to contact me!
This work is licensed under MIT.