News App using the lWC and Apex REST Callouts.

I am covering the following topics in this session

  • Remote Site Setting
  • Creation of Lightning App Page
  • Apex class to call REST API(news API)
  • Display Data on Lightning Web Component
  • Deploy your component
  • Step 1 - Create an news API key

    Go to the following website and generate your news api key

    https://newsapi.org/

    Step 2 - Remote Site Setting

    Salesforce prevents calls to unauthorized network address. So to fetch the data from news api we have to add this https://newsapi.org/ URL to our remote site settings

    To add this go to setup

    https://newsapi.org/
    Site developed by Nikhil Karkra © 2021 | Icons made by Freepik