- postgres version (PostgreSQL) 11.1
- yarn version 1.10.1
Install Postgres:
brew install postgresql
Install all packages:
yarn
Create PostgresDB Locally:
createdb api-challenge
Seed DB:
npm run seed
Run App:
npm run start
Your client has decided to open a store and sell various products. They'd like to allow their customers to rate each product. With this offering your client is releasing two new API endpoints.
- Write tests to validate the ratings for various products.
- Write tests to validate reviews for various products.
- Make suggestions for code improvements or make improvements to the code as you see fit.
Feel free to use any language or testing framework you’d like.