Skip to content

stephaniesara/reviews

Repository files navigation

OpenSourceTable - Reviews

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.

Related Projects

Table of Contents

  1. Usage
  2. Requirements
  3. Development

Usage

Requirements

An nvmrc file is included if using nvm.

  • Node 6.13.0
  • etc

Development

Installing Dependencies

From within the root directory:

$ npm install -g webpack
$ npm install

Seeding MySQL Database

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

Starting Webpack and Running Server

From within the root directory:

$ npm start

If your MySQL root user requires a password: Update password in /server/db/index.js

Open Chrome, and PROFIT!

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published