Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.21 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.21 KB

Task points

Parser

The parser core can be found at worker/pkg/parser
Prebuilt template which use it can be found at worker/internal/prebuiltemplate

The articles publishing happened here

The article consuming happened here

Api

Pagination done at database level.

Also I had the pagination view for good frontend experience.
It can be found at pkg/paginationutils

Building

docker build .

Important

To run need Docker Compose version 2.22 and later.
docker-compose watch

For migration:

goose -dir ./backend/migrations -table schema_migrations postgres postgres://admin:admin@localhost:5432/postgres up

Also for running worker need provide config:

echo "CONFIG='{...}'" > .env

Database ERD

erd The migration ca be found at backend/migrations
The queries at backend/internal/storage/queries