This component displays the ratings and reviews for a given restaurant. It allows the user to sort and filter reviews, click through different pages of reviews, and read more/read less of individual reviews.
- https://github.com/CodeRoundTheCampfire/reservations
- https://github.com/CodeRoundTheCampfire/About-Map
- https://github.com/CodeRoundTheCampfire/searchbar
- https://github.com/CodeRoundTheCampfire/photo-stream
An nvmrc
file is included if using nvm.
- Node 6.13.0
- etc
From within the root directory:
$ npm install -g webpack
$ npm install
From within the root directory:
$ npm run seed-db
If your MySQL root user requires a password: Update password in seedReviews.js
Seeding is complete once you see the following terminal output. May take several minutes.
Finished seeding table: details
Finished seeding table: users
Finished seeding table: reviews
Once seeding is complete, ensure MySQL is running:
$ mysql.server start
From within the root directory:
$ npm start
If your MySQL root user requires a password: Update password in /server/db/index.js
You can render restaurants of id n where n is between 1-267:
http://localhost:3002/?id=n
Example: render restaurant of id n=122:
http://localhost:3002/?id=122
Default: render restaurant of id n=1:
http://localhost:3002