Skip to content

toxic-hackers/react-app

Repository files navigation

Toxic hackers

https://www.toxichackers.com

Toxic hackers is an app that lets you see how toxic any HackerNews commenter is. Search by username or browse the ranks of the "toxic". We've taken the open source HackerNews dataset and used sentiment analysis to generate summaries of usage across commenters' lifetimes.

Please explore. 🙂 We've prepared visualizations & dashboards of commenters' activity for your curiosity. Just be prepared there's some really nasty trolls out there.

Table of Contents

Demo

Contributors

Toxic hackers was developed by a Ivana and Britton based on idea from Lambda School build week. 🚀

Ivana Huckova
Ivana Huckova

Full-stack Developer

Britton Winterrose
Britton Winterrose

Machine Learning Developer

Built with

  • JavaScript
  • React
  • Semantic UI 🧡
  • Recharts 💙
  • Styled Components 💜
  • Firebase
  • React Testing Library 🐐

Dependencies

  • axios: ^0.18.0,
  • cors: ^2.8.5,
  • dotenv: ^7.0.0,
  • firebase: ^5.9.4,
  • helmet: ^3.16.0,
  • node-sass: ^4.11.0,
  • proptypes: ^1.1.0,
  • react: ^16.8.5,
  • react-dom: ^16.8.5,
  • react-router-dom: ^5.0.0,
  • react-scripts: 2.1.8,
  • react-tabs: ^3.0.0,
  • recharts: ^1.5.0,
  • semantic-ui-react: ^0.86.0,
  • styled-components: ^4.2.0

Dev Dependencies

  • react-testing-library: ^6.1.2,

Installation

  1. Fork the repository
  2. Run yarn
  3. You need to add environment dependencies to connect to database
  4. Run yarn run-app for react app and yarn start for express app
  5. Run yarn test for tests
  6. Enjoy the app 🙂

Environment Variables

Database Enviroment Variables

  • APIKEY
  • AUTHDOMAIN
  • ID
  • PROJECTBUCKET
  • PROJECTID
  • TESTURL

For Production

  • NODE_ENV=production

Firestore Database

Success Outputs

Javascript object in following format:

{
avg_slt_oall: 0.04860141148784049,
avg_slt_s: -0.09191689742938368,
cnt_cmnts_oall: 9964,
cnt_slt_s: 2075,
commentor: "pg",
monthly_plot: {},
rank_lt_amt_slt: 46,
rank_lt_qty_sc: 45,
rank_oall_slt: null,
rank_slt_trolls: null,
sum_slt_oall: 484.2644640648426,
sum_slt_s: -190.72756216597114,
time_cmnt_fst: {},
time_cmnt_lst: {},
top_cmnts_s: {}
}

Contribution guidelines

We are currently working on contribution guidelines. 🙂

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages