This project is a sample of how to integrate Gab News data into your site or application.
Execute these commands in the root directory of this project:
npm install -g yarn gulp
yarn
gulp
Access http://localhost:3000 in your browser to see the news widget.
In the app/controllers/home.js
controller script, you will find the logic to issue a request to Gab News to fetch Top News data and pass it to the view.
In app/views/index.pug
you will find the basic code to render the news headlines in a way that is acceptable for a WordPress blog's sidebar.