Certainly! Based on the commands and actions you've taken, here's a summarized README.md for your RSS aggregator project built in Go with a Chi router:
This project aims to develop an RSS aggregator using Go programming language along with the Chi router. The aggregator will fetch and organize RSS feeds from various sources for easy consumption.
-
Database Migration: Use Goose to manage database migrations. Navigate to the
sql/schema
directory and run migrations with the following command:goose postgres postgres://postgres:skanda123@localhost:5432/rssagg up
This command will apply database migrations located in the
sql/schema
directory. -
Generate SQLC Queries: Generate SQLC queries to interact with the database. Run the following command in the root directory:
docker run --rm -v "%cd%:/src" -w /src sqlc/sqlc generate
This will generate Go code for type-safe SQL queries based on the SQL files located in the
sql/queries
directory. -
Build and Run: Build the Go application and run the server. Execute the following commands:
go build ./rssaggr.exe
This will build the application and start the server listening on port 8000.
-
RSS Feed Aggregation: The server will aggregate RSS feeds from various sources.
-
API Endpoints: The server exposes API endpoints for interacting with the aggregated feeds.
-
Authentication: Implement authentication middleware for secure access to the API endpoints.
Contributions are welcome! Feel free to fork the repository, make changes, and submit a pull request.