This project is a web application that fetches and displays articles from the New York Times Most Popular API. Users can view popular articles and see detailed information about each article.
Following are the routes/pages present in this application -
- Master/List page - this page will fetch the most popular API from New York Times API and displays it using Grid layout
- Details Page - this page will display the details of the selected article
-
Clone the repository:
git clone <repository-url>
-
Change directory to the newly cloned folder:
cd ny-times
-
Install dependencies:
npm install
OR
yarn
To start the development server, run:
npm start
OR
yarn start
The application will run default in Port 3000. Access it via web browser at http://localhost:3000
React v18.2
React Router v6
Redux Toolkit with RTK Query v2
Material UI v5
React testing library
Jest
Cypress
ESlint
for lintingPrettier
for code formattingSonarQube
for code anaylsis
start
: Start the development server.build
: Build the application for production.test
: Run tests using Jest.coverage
: Run tests with coverage report.eject
: Eject the application from Create React App.prepare
: Installs necessary pre-commit/push hooks from husky librarylint
: Lints JavaScript/TypeScript files.lint:fix
: Uses ESLint to fix any potential problems.format
: Formats code using prettiercypress
: Executes Cypress E2E tests