Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 2 KB

README.md

File metadata and controls

65 lines (39 loc) · 2 KB

Airbnb ratings

visualize number of airbnb ratings during corona

Folder structure

Your app lives in /src.
Reusable modules should eventually be moved to src/shared and be pushed back to Github. :)

(create react app forces all code to live under src)

Environment Variables

Homepage

By default, Create React App produces a build assuming your app is hosted at the server root. To override this, specify the homepage in your package.json, for example:

"homepage": "http://rbb24.de/static/rbb/rbb-data/project-name",

Analytics

This App can track "pageviews" and e.g. map interactions. To enable this you need to replace everything in {} in the ANALYTICS variables in the .env file and set REACT_APP_ANALYTICS_ENABLED to true.

Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run analyze

Analyze the bundle size you can also run npm run analyze-without-build if you already have run npm run build before.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run scripts:convert-to-csv

convert raw data to gruped rating counts

This script expects a csv at ../src/data/detailed-reviews-csv-17092020 2018-2020.csv. The output is a csv file. Then it saves the result in the file ../public/counts.csv