Giter Site home page Giter Site logo

hrvadl / goweekly Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 117 KB

Application for querying top articles from https://golangweekly.com/, translating them to Ukrainian and sending to the telegram channel

License: MIT License

Go 96.66% Dockerfile 3.34%
article chatgpt crawler go golang openai-api telegram telegram-bot

goweekly's Introduction

Go weekly πŸ€“

Quick start πŸš€

Run app 😬

Make sure you have docker & docker compose tools installed. Then, copy contents of .env.example to .env and populate it with values. Finally, in the root of the directory run:

docker compose up

Architecture

App consists of 4 microservices:

  1. Crawler - is responsible for obtaining articles and publishing them to the RabbitMQ. Should be run as a cron/scheduled job (to be done).
  2. Core - core service, responsible for listening to RabbitMQ queue and calling other services.
  3. Translator - service, used for translation. Uses lingva under the hood.
  4. Sender - service, used to distribute translated messages to Telegram channel.

Local software development πŸ‘·πŸ»

Code quality πŸ’…πŸ»

Make sure you have pre-commit installed and added to your $PATH. Then run following command from the root of the repo:

pre-commit install

Now, you must install golangci-lint and include it to your path as well.

Congrats, now pre-commit will run before your commits. Also, in case you're using VSCode linting on save should be integrated into your editor.

What's the purpose? πŸ₯Έ

I like Go and I like reading tech articles. I appreciate work from admins of go-weekly website. But, I don't like to be notified about fresh weekly digest by mail. I'd like receive weekly digest directly in the telegram, because ... Because, why not? Also, I'd like to contribute to the Ukrainian golang community and make summaries translated to ukrainian language. πŸ‡ΊπŸ‡¦

Contributors πŸ‹πŸ»

TODO

  1. Run Crawler as a Cron job in Kubernetes
  2. Add grpc logger & other useful interceptors
  3. Add Helm chart?
  4. Deploy it somewhere?
  5. Add graceful shutdowns

goweekly's People

Contributors

oleksandrcherevkov avatar hrvadl avatar

Stargazers

 avatar  avatar Michael Nilga avatar

Watchers

 avatar

goweekly's Issues

Parse fetched articles

AC:

  • All fetched articles are parsed correctly.
  • Logic to filter out the sponsored articles is implemented
  • Errors are handled correctly

Create a test plan

We need to create test plan. It should answer following cases:

  • Which edge cases does our application have?
  • Which coverage should be enough for our code?
  • Write some sample unit test. The one would be enough for now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.