Skip to content

RSS Aggregator server

Pre-release
Pre-release

Choose a tag to compare

@Pranay-Pandey Pranay-Pandey released this 12 May 07:41
· 1 commit to master since this release

This is a build version of the go code in the repository. To run this server simply type .\rssagg in a terminal.
The environment should have a PORT and DB_URL exposed.
To do so, you can simply create a .env file with the two fields in it.

The Database should have the required tables and relations in it. To streamline that you can use the tool goose.
To install goose simply use

go install github.com/pressly/goose/v3/cmd/goose@latest

To migrate all the tables and relations to a postgres database use

 cd .\sql\schemas\ 
goose postgres {{postgres_DATABASE_URL}} up

This will migrate all the tables to the database. You can add the feeds to the database by calling the endpoint /v1/feed
After that this server will automatically collect 10 feeds every 1 minute

Run the server

.\rssagg

Enjoy!!