Skip to content

esteban-gs/pollfax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pollfax

Summary

This is an educational project for the continued learning of:

  • Data ingestion pipelines
  • ETL
  • Go(lang)

Architecture

Golang as the server language paired with sqlx package for interfacing with the database.

Data ingestion

The server starts a cron job to ingest data from api.congress.gov. The main data points to ingest are:

  • Current congress number. e.g 118th congress, etc.
  • Get first ~250 bills belonging to the 118th congress.
  • Persist the bills to a bills table.

Roadmap

The pollfax MVP will accomplish the following

  • Let users browse the most recently updated bills.
  • Users can up/downvote bills -> this is persisted in a database
  • Dashboard TBD

Database Schema Version Control

Create New Migration

  • run migrate create -ext sqlx -dir db/migrations -seq create_bills_sentiment_table

Commands

server/main

Starts the http server.

ingest/main

Runs the bills igestion command ad-hoc command.

About

Bill sentiment tracker built with Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages