Skip to content

johanla0/js-rss-reader

Repository files navigation

RSS Reader Class Project

Node.js CI Actions Status Maintainability

Service is available here

Web-service that helps to read RSS feeds

  1. To start editing fork or clone this repository
$ git clone https://github.com/johanla0/frontend-project-lvl3.git
  1. Install dependencies
$ make install

State description

  • feeds: [ { title, description, link }, ] // feeds

  • posts: [ { title, description, link, guid, pubDate }, ] // posts

  • urls: [] // urls added

  • form: { url, state, error } // used to render form

  • modal: { state, postId } // used to render form

  • ui: { openedPosts: [], } // used to render content

  • request: { state, error } // used to render request result

  • lng // used to render language dropdown

Finite-state machine states:

state.form.state:

empty ->
  valid ->
    empty
  invalid ->
    valid
    empty

state.modal.state:

hidden ->
  shown ->
    hidden

state.request.state:

idle ->
  sent ->
    success ->
      idle
    error ->
      idle