A web app build using React JS that display news from a British news media The Guardian.
View Demo
Table of Contents
This project fetch news from The Guardian newsportal through it's API and display news based on different categories. This is progressive web app (PWA) which you can install it in your laptop or mobile phone. It runs on offline mode as well so please be aware that if you are offline then you might see stale news (cached news since you were online last time).
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
- News organized in separate category
- Display editor's choice news separately
- Ability to sort news newest first or oldest first
- Bookmark news
- Infinite scrolling
- Offline first
- Mobile friendly
This section is needed only if you want to deploy this app in local machine. (For developers)
Add The Guardian API's api key.
- Copy
.env.example
file and paste it with new name.env
- Add your actual api key. (If you do not have API key,Get a free API Key from here
In the project directory, you can run:
Installs all the dependencies.
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.
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!
These are the known issues
- In smaller device, design is not upto the mark.
- Search article has not been implemented
- Top Stories (Editorial pick) doesn't get sorted by newest first or oldest first sorting as The Guardian API for editorial pick returns same response on both order by values.
- Card view bottom section (title and description) is not as per mockup. In mockup, title and description section has low opacity and overlay above the image.
- Sort by dropdown is not as per mockup design.
Distributed under the MIT License. See LICENSE
for more information.