Our News API is great as a data source for news tickers and other applications where you want to show your users live headlines. We track headlines in 7 categories across over 50 countries, and at over a hundred top publications and blogs, in near real time.
Goals:
we Use 1 API
We make our API calls from the back-end using the Request module
our server contained to a 2 routes
We use back-end testing using Tap and basic front-end testing.
we test our server by injecting fake HTTP requests using Supertest (consider testing for 404's and 500's).
we use module.exports and require to break a single large server file into smaller modules.