项目作者: BohdiCave

项目描述 :
A full-stack MERN app allowing to search the new Google Books API in either title or author fields and save any book of interest to a database. The saved books may be reviewed and the list adjusted by removing any saved record from the database.
高级语言: JavaScript
项目地址: git://github.com/BohdiCave/just-book-it.git
创建时间: 2021-02-03T22:55:23Z
项目社区:https://github.com/BohdiCave/just-book-it

开源协议:Mozilla Public License 2.0

下载


Just Book It - a full-stack MERN App

License: MPL 2.0

This app is a Node/Express/MongoDB/React app deployed to Heroku. It makes a call to Google Books API and allows users to search that API based on the “title” and “author” fields.

In the development phase, the front-end React auto-reloads as it’s updated via webpack dev server, and the backend Express app auto-reloads independently with nodemon (“concurrently” dev dependency). Once deployed to Heroku, the app is connected to the GitHub repository and automatically rebuilds the app upon every new push to GitHub.

Features used

Frontend

  • React components and pages, routed by react-router-dom
  • React UseState and UseEffect hooks
  • Custom UseDebounce hook - to prevent excessive calls to Google Books API as users input search terms
  • Protected API key using .env

Backend

  • MVC architecture
  • Client (react app as ‘views’) and Server (as ‘models’ and ‘controllers’ with routes) folder structure
  • MongoDB with mongoose.js (deployed on MongoDB Atlas)
  • Server falls back to React app if no API routes are hit upon

Screenshots

Screenshot 1

Screenshot 2