Skip to content

Latest commit

 

History

History
26 lines (26 loc) · 861 Bytes

SETUP.md

File metadata and controls

26 lines (26 loc) · 861 Bytes

Base setup for project

  • Create database in postgresql with name DailyHelper

    postgres=# CREATE DATABASE DailyHelper;
    postgres=# \c dailyhelper;
    postgres=# \i 'way_to_project/database/rates_and_news.sql';
  • Add all data your database to the config file

    db_config: dict[str, str] = {
    	'db_name': 'dailyhelper',
    	'user': 'USER',
    	'password': 'PASSWORD',
    	'host': 'localhost'
    }           
  • Run parsers that will add all the information to (Rates/FinNews)

    python3 .\database_update.py
  • Bot launch

    python3 .\main.py