This full-stack component will emulate the customer reviews from a product page on Groupon.com. This includes the reviews average, and each individual customer review (including the customer's name and extended profile - i.e. total number of reviews/ratings, helpfulness - review text for the product, and the review's helpfulness).
A back-end server is also included in this repo to correctly handle routes to /api/:productId
, and to serve review data to the front-end React-based component.
Other service components related to this can be found at https://github.com/coupon-app
These include:
Proxy related to these services can be found here:
- (Ensure your MongoDB service is running)
$ npm run seed-reviews
$ npm run build-reviews
$ npm run start-reviews
Navigate to http://localhost:3001
The following are required:
- Node (any recent version > 6). An
nvmrc
file is included if using nvm.
From within the root directory:
$ npm install
Tests and test coverage using Jest/Enzyme is included, and can be run via the command line:
$ npm run test-reviews