Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.11 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.11 KB

Twitter-Elections 🥳

Prédiction des vainqueurs dans chaque circonscription aux élections législatives grâce à la popularité des tweets et leurs états civils.

Deploy using Docker

Launch Docker to insert / update data

  • cd docker/
  • docker compose build
  • docker compose up -d
  • docker compose run python bash

Launch a python script:

  • python 3 xxx.py

Use pgadmin interface

The containeur has to run:

  • cd docker/

  • docker compose build

  • docker compose up -d

  • docker compose run python bash

  • go to http://localhost:15433/

  • use email and password as in env file

  • Add a new serveur

  • fill in the information with the env file

Retrieve IP Adress:

  • docker ps: copy id of postgresql container
  • docker inspect id_container | grep IPAddress

Launch Jupyter

The containeur has to run:

  • cd docker/
  • docker compose build
  • docker compose up -d
  • docker compose run jupyter bash enter electweet as password

If password or token is asked: run this command inside jupyter container :

  • jupyter server list
  • get token after "="
  • change password as requested if needed

Have fun! and 🍺