This is a simple web application that allows users to search for news articles using keywords. It utilizes the News API to fetch news articles based on the user's search query.
-
Trying to integrate public APIs into web projects.
-
Express/Node.js for server-side programming.
-
Client-server communication using Axios.
-
Manipulate, present, and work with data retrieved from APIs.
-
Set up a new Node.js project using Express.js.
-
Include Axios for making HTTP requests.
-
Include EJS for templating.
Before running the app, make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
- npm install
-
Sign up for a free API key at News API.
-
Create a new file named .env in the root directory of the project.
-
Add your News API key to the .env file:
API_KEY=your-api-key-goes-here
- Node.js
- Express.js
- Axios
- EJS (Embedded JavaScript)
- News API