https://github.com/takumade/rss-aggregator
RSS Aggregator is a simple RSS feed reader that fetches RSS feeds from multiple sources and stores them in a database
https://github.com/takumade/rss-aggregator
go-chi golang http-server rest-api
Last synced: over 1 year ago
JSON representation
RSS Aggregator is a simple RSS feed reader that fetches RSS feeds from multiple sources and stores them in a database
- Host: GitHub
- URL: https://github.com/takumade/rss-aggregator
- Owner: takumade
- Created: 2024-09-11T16:46:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-29T21:07:56.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T05:15:05.140Z (over 1 year ago)
- Topics: go-chi, golang, http-server, rest-api
- Language: Go
- Homepage: https://github.com/takumade/rss-aggregator
- Size: 270 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RSS Aggregator

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.
## Tech Stack
- Go
- Postgres
## Installation
1. Clone this repo:
```sh
git clone https://github.com/takumade/rss-aggregator.git
```
2. Change directory to the project folder:
```sh
cd rss-aggregator
```
3. Create a `.env` file in the root of the project and add the following environment variables:
```sh
PORT=POST_HERE
DB_URL=DB_URL_HERE
```
4. Install the dependencies:
```sh
go mod tidy
```
5. Run the project:
```sh
go build && ./rss-aggregator
```
## API Endpoints
Check the `RSS_Aggregator_API(Thunder Client).json` file for the API endpoints. Its in the root folder
## Other useful commands
### Create migration
To add schema migration go to `./sql/schema` and create a file and add your changes.
Then run the following command in root folder:
```sh
./migrate up
```
### Add query
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:
```sh
./generate_query
```
## Special Thanks To
[WagsLane](https://github.com/wagslane)