News App is a mini data-as-a-service project built on top of NewsCatcher API to make easier the process of using the services provided by NewsCatcher API.
NOTE This application is not affiliated in anyway to the NewsCatcher API or their developers. This is merely a side project.
This project was built using:
- NodeJS, Express.js
- Axios (for fetching data)
To be able to run this project on your local machine, make sure you have NodeJS installed on your computer.
On your terminal, run the code below
npm --version
npx --version
On your terminal, run the code below
git clone https://github.com/E-Zbox/news_app.git
Once you have successfully cloned the repository, cd news_app
on your terminal.
While in the root directory of the project, run the code below on your terminal
npm install
After installation, go to NewsCatcher API and setup an account if you are a new user, follow the steps provided on their page to create a unique API key.
Update your .env.development
file in the root directories with your unique API key gotten from the NewsCatcher API.
Now, set your NODE_ENV variable on your terminal with this code
- For Linux or mac OS users
export NODE_ENV=development
- For Windows users
SET NODE_ENV=development
Run the code below on your terminal
npm run dev
On your browser or Postman, run the following code below to get news articles about "Elon Musk"
localhost:[[PORT]]/search?topic="Elon Musk"
Perform the operation below in your browser or Postman
...
{
headers: {
"x-api-key": `[[YOUR_API_KEY]]`
}
}
Phew.
Congratulations ππΎ you successfully made your first request
- Heroku version of Node Project
- Postman Documentation
Screenshot of Live Project
Developed by Ononogbu Ebenezer