World News Headlines is a simple and easy-to-use app that returns headlines currently published on a range of news sources and blogs (70 and counting so far). Use it to get live news headlines!. You can follow the read more links to be redirected to various news websites to read the full news articles.
This project was generated with Angular CLI version 1.4.2. and powered by News API (newsapi.org)that returns JSON metadata for the headlines. Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Get an API key from https://newsapi.org/ and replace your-api-key in the getchannels.services.ts on line 16 https://newsapi.org/v1/articles?source='+source+'&apiKey=your-api-key
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng serve
to start the app
http://world-news-headlines.herokuapp.com/
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.