Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.33 KB

README.org

File metadata and controls

40 lines (34 loc) · 1.33 KB

The New York Times Link Aggregator

Hi, since I didn’t had a lot of free time this week I decided against using Sangria, which was one of the library constraints, and using Caliban instead, since Caliban comes with http4s support there was no need to make a custom wrapper like this one, I may add a Sangria implementation soon

there are two ways of getting articles from The New York Times, simply using their http rest API or crawling their web page, since I don’t know how often their front page changes, the scraping happens in a background job every hour

there’s still a lot left to do in this project, the tests are pretty poor and the error handling is not ideal, I’m sure there’s some inter-op between Cats MTL and ZIO’s error channel, but I didn’t had a lot of time to look into it

Development

  • setup Postgres
docker compose up
  • develop with sbt-revolver
sbt ~reStart
  • test
sbt test

Deploy

  • docker from the github registry
docker compose -f deploy-compose.yml up -d