Skip to content
forked from Staybnb/Reviews

This is the "Reviews" module in our TopBunk web application

Notifications You must be signed in to change notification settings

TopBunkNYC/Reviews

 
 

Repository files navigation

Reviews

This is the "Reviews" module in our TopBunk web application. To visit the deployed service, go here.

The images below provide a tour of the deployed proxy server, which brings together the description, booking, reviews, and about-the-neighborhood services into a unified application. You can find the proxy server's Github page here.

Related Projects

Installing Dependencies

From within the root directory:

npm install

Running the application

To run the application in non-development mode from within the root directory:

# Create CSV files of the four database files. 
# NB: these files take up about 4GB and take 10 minutes to generate on a MacBook Pro with 8GB RAM.
npm run build-csv
npm run load-csv

# Compile bundle.js using Webpack
npm run build

# Start server on localhost
npm start

Then access the application at (http://localhost:8001).

The load-csv script will run the PostgreSQL schema and create the tables, and then load data into the tables created. You will need to set up a config.js file at the root of your folder with the following structure:

exports.dbConfig = {
  host     : 'localhost',
  user     : 'your_postgres_user_name',
  password : 'your_postgres_password__may_be_empty',
  database : 'topbunk'
}

To run in developer mode:

npm run build-csv
npm run load-csv
# Compile bundle.js using Webpack's -w[atch] flag
npm run react-dev
# Start server on localhost with nodemon
npm run start-dev

# To run tests:
npm test

About

This is the "Reviews" module in our TopBunk web application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.5%
  • TSQL 1.8%
  • Dockerfile 0.7%