/test-frontend

Primary LanguageJavaScript

UI Cases

For user

  • User can Sign in or Sign up as default user
  • User can receive alert notifications after actions
  • On the home page:
    • User can logout
    • User can view list of articles included: title, creation date and part of paragraph
    • User can choose article to see detail info
  • On the article page:
    • User can go back to the previous page
    • User can see title and all paragraphs
    • User can edit any paragraph and automatically create suggestion
    • User can cancel paragraph editing

For editor

  • User can Sign in or Sign up as editor (set checkbox while signing up)
  • Editor can receive alert notifications after actions
  • On the home page:
    • Editor can logout
    • Editor can add new article from 'https://www.dagbladet.no'
    • Editor can view list of articles
    • Editor can delete any article with related paragraphs and suggestions
    • Editor can choose article to see detail info
  • On the article page:
    • Editor can go back to the previous page
    • Editor can update paragraph and approve current suggestion
    • Editor can cancel paragraph editing
    • Editor can choose paragraph and see list of provided suggestions
    • Editor can approve of decline suggestion
    • Editor can delete suggestion
  • On the suggestions page:
    • Editor can view suggestion list
    • Editor can filter suggestion by status
    • Editor can approve of decline suggestion
    • Editor can delete suggestion

Requirements

node js version: 6-8

Installation

npm i

Build and develop

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!