Skip to content

BE Golang test task #3

@kezlya

Description

@kezlya

Test task for Golang engineers at https://dev-team.club

Objective:

  • Build tool to monitor performance of Twitter account. That triggered by API call
  • Execution must
  • The tool will be trigger by calling API Get endpoint once per day by separate cron job or scheduler (not part of this test task)

Execution plan:

  1. Create go Fiber project with single endpoint / handler.
  2. Get a list of accounts from env variable, comma separated string: example: elonmusk, BillGates, katyperry
  3. Using official Twitter API to get the number of followers, following and post for each account for current day.
  4. Save collected statistic into the table of PostgreSQL database. (Use ORM or DAL)
    a) connect to remote DB - easy
    b) init local db
  5. (Optional) Wrap API microservice and PostgreSQL database in separate docker containers. Use docker-compose

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions