Skip to content

Polistack is a web application that matches policy interests with public sentiment to facilitate informed decision-making.

Notifications You must be signed in to change notification settings

rishabharora3/polistack

 
 

Repository files navigation

Polistack

Polistack is a web application that aims to match a person's policy interest with current public sentiment surrounding the policy. It provides a user-friendly interface to retrieve policy information from Congress.gov and relevant public reactions from Twitter. The app utilizes MongoDB as the backend database and incorporates indexing algorithms and stemming techniques for efficient data retrieval. The goal is to empower individuals to stay informed about governmental policy updates and understand public sentiment, enabling faster and more informed action.

Built by RIT Students: Rishabh Arora, Christian Haacke, Odin Wright, Arjun Kozhissery

ROLES

  • KPIs / DOCUMENTATION = Christian
  • INTERFACE / PRODUCT = Odin
  • MODELS / ALGORITHMS = Arjun
  • INTEGRATIONS / APIs = Rishabh
  • DATABASE / DATALAKE = Rishabh
  • ACCOUNTS / MANAGEMENT = Odin

TECH STACK

  • MONGO
  • PYTHON / DJANGO
  • JAVASCRIPT (AJAX) / HTML / CSS

URLs

LocalHost

  • Home Screen - Bills: http://127.0.0.1:8000/congress/bills/
  • Specific Bill: http://127.0.0.1:8000/congress/bill/4376/

Server URLS

Versions

  • Python and Django versions used: Check the Pipfile for the specific versions of Python and Django used in this project.

Commands References

Mac OS

Before running the commands, ensure that you have the latest version of Python installed.

  • pipenv install django - Install django.
  • python3 --version - Verify the installed Python version.
  • pip3 install pipenv - Install Pipenv, a dependency management tool.
  • pipenv shell - Activate the virtual environment for your project.
  • pipenv --venv - Find path to virtual environment.
  • django-admin startproject name_of_your_project . - Create a new Django project in the current directory.
  • python3 manage.py runserver - Start the development server at http://127.0.0.1:8000/.
  • source /path/to/virtual_environment/bin/activate Sometimes the runserver command fails use this for alternative.
  • python3 manage.py startapp app_name - Start a new django app
  • pip3 show django - Check if django is installed and details are shown.
  • pip3 install requests
  • pipenv install django-debug-toolbar
  • pip3 install pytz
  • python3 manage.py makemigrations polistackapp
  • python3 manage.py migrate
  • pip3 install pymongo
  • pip install django-bootstrap5
  • pipenv clean
  • pipenv install

Note: python3 is used for avoiding using the Mac pre-installed python version.

Make sure to execute these commands in the project directory to set up and run your Django project successfully.

Shortcuts in VS Code

Mac OS

  • control + l - clear terminal window.
  • command + b - show/hide explorer panel.
  • control + \ ` - show/hide terminal
  • command + p - search box

Appendix

Screenshots

Home Screen

Home Screen

Search Results Screen

Page 3

Bill Detail

Bill Detail

Demo links

Slides

About

Polistack is a web application that matches policy interests with public sentiment to facilitate informed decision-making.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 43.1%
  • CSS 33.5%
  • HTML 8.8%
  • Jupyter Notebook 7.5%
  • Python 7.0%
  • SCSS 0.1%