An rss aggregator built with Go
This project is configred to use Postgres and the Goose database migration tool. To migrate the database, navigate to the sql/schema folder. To create the database, run
goose postgres postgres://{username}:{password}@localhost:{PORT}/rssagg up
To drop the database, run
goose postgres postgres://{username}:{password}@localhost:{PORT}/rssagg down
Requests can be made via API clients (such as Postman or Thunder Client) to POST, GET, and DEL users, feeds, feed_follows, and so on.
Example request:
POST http://localhost:8080/v1/feeds
Headers: Authorization: ApiKey {ApiKey}
Body: {
"Name": "Blog Name",
"URL": "https://blog.com"
}
Refer to the router and handlers for more info