RSS Aggregator is a simple RSS feed reader that fetches RSS feeds from multiple sources and stores them in a database. It is built using Go and Postgres. It exposes a REST API to fetch users, feeds, feed follows, posts.
- Go
- Postgres
- Clone this repo:
git clone https://github.com/takumade/rss-aggregator.git
- Change directory to the project folder:
cd rss-aggregator
- Create a
.env
file in the root of the project and add the following environment variables:
PORT=POST_HERE
DB_URL=DB_URL_HERE
- Install the dependencies:
go mod tidy
- Run the project:
go build && ./rss-aggregator
Check the RSS_Aggregator_API(Thunder Client).json
file for the API endpoints. Its in the root folder
To add schema migration go to ./sql/schema
and create a file and add your changes.
Then run the following command in root folder:
./migrate up
To add a query go to ./sql/queries
and create a file and add your query.
Then run the following command in root folder to create a query file:
./generate_query