This project is a command-line interface (CLI) application that fetches and displays the latest news from Morocco. It utilizes TypeScript for development and Axios for making HTTP requests to a news API.
moroccan-news-cli
├── src
│ ├── main.ts # Entry point of the application
│ └── services
│ └── newsService.ts # Service for fetching and displaying news
├── package.json # NPM package configuration
├── tsconfig.json # TypeScript configuration
└── README.md # Project documentation
-
Clone the repository:
git clone <repository-url> cd moroccan-news-cli -
Install dependencies:
npm install -
Configure the news API:
- Update the
newsService.tsfile with your news API key and endpoint.
- Update the
To run the application, use the following command:
npm start
This will execute the main.ts file, which fetches the latest Moroccan news and displays it in the command line interface.
- axios: For making HTTP requests to fetch news data.
This project is licensed under the MIT License. See the LICENSE file for details.