/react_news_api_context

In this project I got the data from newsapi and listed it on the main page. When the user searches for invalid data, a message not found will appear. If the user searches with empty data, he will be asked to enter a news data. 9 news will be listed on the main page and will be navigated with pagination.

Primary LanguageJavaScript

Click for my projectπŸ‘‰

🚩 ABOUT

🌎 Home pages

In this project I got the data from newsapi and listed it on the main page. When the user searches for invalid data, a message not found will appear. If the user searches with empty data, he will be asked to enter a news data. 9 news will be listed on the main page and will be navigated with pagination.

πŸ” Detail pages

When you click on the news, you can reach the detail page. The details include the source of the news, adding data to the favorite page, and share buttons.

πŸ’— Favorite Pages

Favorite products are listed on the favorite page and there is a button to remove the favorite products to be removed.

🚩 PROJECT STRUCTURE

.
β”œβ”€β”€ App.css
β”œβ”€β”€ App.js
β”œβ”€β”€ App.test.js
β”œβ”€β”€ assets
β”‚   β”œβ”€β”€ Homenews.jpg
β”‚   β”œβ”€β”€ img1.jpg
β”‚   β”œβ”€β”€ img2.jpg
β”‚   └── img3.jpg
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ Navbar.jsx
β”‚   └── Pagination.jsx
β”œβ”€β”€ context
β”‚   └── AuthContext.jsx
β”œβ”€β”€ helper
β”‚   └── ToastNotify.js
β”œβ”€β”€ index.css
β”œβ”€β”€ index.js
β”œβ”€β”€ pages
β”‚   β”œβ”€β”€ DetailPage.jsx
β”‚   β”œβ”€β”€ Favorites.jsx
β”‚   β”œβ”€β”€ Home.jsx
β”‚   β”œβ”€β”€ Login.jsx
β”‚   └── SourceSection.jsx
β”œβ”€β”€ reportWebVitals.js
└── router
    └── AppRouter.jsx

🚩 Libraries and Technologies I use

  • React
  • Toastify
  • Bootstrap
  • Reactbootstrap
  • Axios
  • React Router Dom (6.3v)
  • React Share

🚩 How does my project look

news2

🚩 How To Use

To clone and run this application, you'll need Git

# Clone this repository ($ git clone https://github.com/)
> run command npm install
> Open the runserver