A simple React application for displaying news articles. This project is designed as a learning exercise to demonstrate the use of React, JavaScript, and modern web development tools.
- Responsive UI built with React
- Fetch and display real-time news articles
- Categorized news for easy navigation
- Supports multiple browsers and modern web standards
-
Clone the repository:
git clone https://github.com/your-username/news-app.git cd news-app
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open the application in your browser: Navigate to
http://localhost:3000
.
- Open the application in your browser.
- Browse through the available news categories.
- Select a category to view articles.
- Enjoy reading the latest news!
- React.js: For building the user interface.
- JavaScript (ES6+): For scripting and logic.
- React Scripts: For configuration and development tools.
- Web Vitals: For monitoring performance metrics.
The following scripts are available in this project:
npm start
: Runs the app in development mode. Openhttp://localhost:3000
to view it in your browser.npm run build
: Builds the app for production to thebuild
folder.npm test
: Launches the test runner in interactive watch mode.npm run eject
: Ejects the app to allow customization of configurations.
news-app/
├── node_modules/ # Project dependencies
├── public/ # Public assets (HTML, images, etc.)
├── src/ # Application source code
│ ├── components/ # Reusable React components
│ ├── App.js # Main app component
│ ├── index.js # Entry point for the app
│ ├── App.css # Global styles
│ └── ... # Other files
├── package.json # Project metadata and scripts
└── README.md # Project documentation
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page for open issues.
This project is licensed under the MIT License.
See the LICENSE file for details.
- Rajat Agrawal
Connect with me on LinkedIn.
- Ensure your Node.js version matches the project's requirements (LTS recommended).
- Run
npm install
after cloning the repository to install all dependencies. - Modify the API logic in
src/components
to integrate your news data source.
Feel free to customize this file further based on the specific details and requirements of your project!