Skip to content

SDC-4Head/sdc-reviews

Repository files navigation

this.Reserve

A full-stack app for making reservations with optimized back-end

Related Projects

Table of Contents

  1. Requirements
  2. Usage

API Routing

ROUTE METHOD
/api/reviews/rooms/:roomId GET
/api/reviews/rooms/:roomId PUT
/api/reviews/rooms/:roomId POST
/api/reviews/rooms/:roomId DELETE

Requirements

  • Node 11.6.0
  • About 5GB available storage
  • Redis
  • PostgreSQL

Usage

  1. Clone repo to your desktop.
  2. Go to your terminal and navigate to root directory of repo, then execute npm install to install dependencies.
  3. Configure the pool variable in the pool.js file of the db folder to the settings for your PostgreSQL on your computer.
  4. Start up PostgreSQL server on your computer.
  5. In your terminal at the root diretory, execute npm run generate-pg. This will generate 3 files of data: review.csv, user.csv, and room.csv.
  6. Once completed, execute npm run populate-pg. This will populate your PostgreSQL database with the generated data.
  7. Start up your Redis server on your computer.
  8. Open two tabs in your terminal. At the root directory, execute npm start in one terminal and npm run build in the other terminal.
  9. Visit http://localhost:3124 in your browser to see the reviews.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published