News Aggregator that pulls news from reliable sources
after downloading the project, run main.go from the command line/Terminal and supply a NYT API key and a NewsAPI key. The command should look like this:
go run main.go -nyt XXXX -news XXXX
Or alternatively you can build main.go and then just run
./main -nyt XXXX -news XXXX
Giving a few notes on each directory in the project and noteworthy aspects of particular files...
For every news source the project tries to get data from, there is a file for each that handles that
Depending on the url path, main.go calls the appropriate handler function to handle it. The handler functions call the News Source functions to gather data and ultimately pass all the data to the front end template
This is where all the html templates reside. They are passed data from the handler functions
Anything extra the front end needs to polish it