This is a React app that allows users to browse and view news articles from various categories.
Before running this application, make sure you have the following installed on your machine:
- Node.js
- npm
- Clone this repository to your local machine
- Navigate to the root directory of the project and install the necessary dependencies by running
npm install
- Start the development server by running
npm start
- The app will be available at
http://localhost:3000
in your browser
- View a list of all news articles
- Filter news articles by category
- View the details of a specific news article
- React - A JavaScript library for building user interfaces
- React Router - A routing library for React apps
- Axios - A library for making HTTP requests
This front-end was built specifically for the Grutto News API built with Laravel. In order for this application to function properly, the API must be running and accessible at http://localhost:8000. The source code for the API can be found in the grutto-news-backend repository.
Here are three screenshots for the front-end along with explanations:
- Home Page: This screenshot shows the home page of the application, which displays a list of all the news items. The user can browse through the list and click on a news item to view its details. Also there is a dropdown menu for the categories to select.
- Category Page: This screenshot shows the category page, which displays all the news items belonging to a specific category. The user can select a category from the sidebar and the page will display all the news items in that category.
- News Item Detail Page: This screenshot shows the detail page for a specific news item. The page displays the title, body, and tags for the news item, as well as the category it belongs to.
- Milad Yekleh - Full Stack Developer - milad.space