Skip to content

rpt27-sdc-ldap/reviews-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audible Reviews

  • Is hosted on an AWS EC2 instance and uses S3 buckets

  • React

  • Node.js

  • Express

  • MongoDB

  • axe DevTools for accessibility (added custom focus states)

  • WCAG - Contrast checker

  • mobile and desktop views are styled

  • I was responsible for this service. It works on a page with 5 other services to form a mock Audible product page that our team of four built. Our respository located at https://github.com/huang-pei-mei and my proxy server is located at https://github.com/huang-pei-mei/jm-proxy

Reviews Screenshots and gif


Phone View ▼














Phone View ▼                                                                     Accessibility Focus State ▼














Usage

  • Database Folder includes 2 database helpers: seedDB seeds the database and seedDBHelperFunctions helps with seeding the database.

  • Run node Database/databaseHelpers/seedDB to seed the database

  • MongoDB database setup is in Database/database.js.

  • Jest Tests are located in Client/ Tests.

  • Style sheet is in Client/style. It uses 'less' for CSS.

  • RenderDom is in Client/index.js.

  • App components are in Client/src/Components

  • The Server with endpoints is in Server/server.js

  • The two endpoints available are books/:id/reviews and /reviews/carouselReviews

  • send request to http://yourEC2Instance:4001/books/:id/reviews

  • returns multiple review objects per id

  • {reviewerName: String, reviewerId: Number, review: String, urlString: String, bookName: String, bookId: Number, date: Date, overallStars: Number, performanceStars: Number, storyStars: Number, title: String, foundHelpful: Number, source: String, location: String}

  • send request to http://yourEC2Instance:4001/reviews/carouselReviews returns array of infoObjects for modals / carousels

  • returns one review object per id

  • {reviewerName: String, reviewTitle: string date: date, overalStars: Number}

  • Crud API will let you create, read, update, or delete individual reviews based on book-id and reviewer-id:

    http://yourEC2Instance:4001/books/:id/reviews/author/:authorid

    Routes:

    • GET - Reads one individual review based on author and book id
    • POST - Creates a new review with the specified author and bookID (takes the above review-structure JSON)
    • PATCH - Updates a pre-existing review with new data
    • DELETE - Deletes the corresponding review.

Installation

fork 'https://github.com/huang-pei-mei/reviews-service'
git clone /path/to/reviews.git
cd reviews-service
npm install
npm run react-prod
npm run start

Contributing

This page is not currently open to contributions

License

N/A

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •