This project is a news platform built with React and TypeScript. It fetches news articles from an external API and displays them in a grid layout. Users can click on an article to read more details in a modal. The application is styled using Ant Design components, and tests are written using Jest and @testing-library/react.
- Fetches news articles from an external API.
- Displays articles in a responsive grid layout.
- Users can click on an article to open a modal with more details.
- Styled using Ant Design components.
- Comprehensive tests written using Jest and @testing-library/react.
- Clone the repository:
git clone https://github.com/yourusername/news-app.git
- Navigate to the project directory:
cd news-app
- Install the dependencies:
npm install
- Create a
.env
file in the root of the project and add your API key:REACT_APP_NEWS_API_KEY=your-api-key
- Start the development server:
npm start
- Open your browser and navigate to http://localhost:3000.
To run the tests, use the following command: npm test
- React
- TypeScript
- Ant Design
- Jest
- @testing-library/react
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.