- Go to https://newsapi.org/
- Login or create an account
- Then click on your email-ID from navbar and you will be redirected to your account page and from there you can copy your API KEY.
- Once you get API KEY you need to Create
.env.local
file insrc
folder.
// Replace <API KEY> to your key.
REACT_APP_NEWS_API="<API KEY>"
- Run command
npm install
in terminal. - Then run the command
npm run start
in terminal.