Skip to content

donxito/news_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Search API

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.

Playing with a API with Express, Axios and Ejs

  • 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.

Prerequisites

Before running the app, make sure you have the following installed:

  • Node.js
  • npm (Node Package Manager)

Install the dependencies using npm:

  • npm install

Configuration

  • 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

Technologies Used

  • Node.js
  • Express.js
  • Axios
  • EJS (Embedded JavaScript)
  • News API