A simple post reader has login window with email and name. When submitted, new token is received via API, and posts are being displayed. Lifetime of every token is limited to 1 hour.
Live here: https://elanor.github.io/post-reader-react/
Task
Create a simple post reader as a React SPA. Implement above using React components and CSS3. Retrieve the data shown in the app from the API described below. Concentrate on functionality, code quality and testability, not appearance. Any common state management, routing and/or testing library can be used. Using CSS toolkits and UI frameworks (bootstrap etc) is not ok. The purpose is to evaluate your coding skills, not npm skills.
Implemented features:
Login Screen with email and name inputs. Sender list with sender name and post count ordered by name alphabetically (made in console). Post list where posts are ordered by creation time (made in console).
Still missing features:
Post order buttons to allow choosing most recent first and most recent last ordering for posts list Clicking on a sender opens that sender's posts in the post list view. Search box for senders. Any senders whose name do not contain the text entered are hidden Search box for posts. Any posts that do not contain the text entered are hidden Deep-linkable post list. This means that it is possible to enter a URL that directly selects the sender whose posts are shown.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Node.JS and npm must be installed. Download and install them from here.
Follow these steps to run this project in your local computer.
$ https://github.com/elanor/post-reader-react.git
$ cd post-reader-react
$ npm i
Now, to run both the project on port 3000
, run:
$ npm start
Go to http://localhost:3000
to view the app.
- React.JS -Frontend library used in the project.
- Supermetrics API - Used for fetching data.
- Marina Layus - elanor
This project is licensed under the MIT License.