RtiM0/rss-reader-api

Mini RSS Reader (Backend)

★ 0Forks 0TypeScriptGitHub ↗Compare
nestjsnestjs-backendpostgresqlrssrss-readersequelizesequelizejstypescript

README

RSS Reader API

This is the back-end for RSS Reader built with NestJS.

What's an RSS Reader?

RSS stands for Really Simple Syndication, and it is a simple, standardized content distribution method that can help you stay up-to-date with your favourite newscasts, blogs, websites, and social media channels. Instead of visiting sites to find new posts or subscribing to sites to receive notifications of new posts, find the RSS feed on a website and read new posts in an RSS reader.

Installation

  1. Clone the repo
    git clone https://github.com/RtiM0/rss-reader-api.git
  2. Install npm modules
    cd rss-reader-api
    npm install

Usage

  1. Set the database config in src/app.module.ts
  2. Start the API using NPM script
    npm run start
  3. API will start on localhost:3001 (port can be changed from src/main.ts file).

Endpoints

All endpoints have a unified response format.

{
	message: any,
	error: boolean
}
  • GET /feed
    • Returns all the feeds stored in the database.
  • POST /feed
  • GET /feed/:id
    • Returns the articles for the specified feed.
    • Supports pagination with page and size queries.
  • GET /feed/refresh
    • Refreshes all feeds.
  • GET /feed/:id/refresh
    • Refreshes the specified feed.

Libraries

External Libraries are only used if they are light-weight, have strong support and that they fully justify their purpose and provide no other unnecessary functions. The libraries used in this project are:

Contributors

RtiM0

Issues