This project was generated with Angular CLI version 1.6.3. ab#22
The below are mandatory
Angular 5/6/7 as front end
ASP.NET Core as backend with SQL server
Authentication to be done by JWT
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.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|module.
Run ng build to build the project. The build artifacts will be stored in the wwwroot/ directory.
Run npm run lint to check linting errors.(https://eslint.org/).
Run npm run test to execute both Mocha and angular test cases [Mocha] & [Karma] (https://mochajs.org/) & (https://karma-runner.github.io)
Run ng e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
Front-end Project is originally generated using Angular CLI, and backend is built in ASP.Net Core using dotnet core CLI.
-
To get category wise news use the following end point. [Category News endpoint] (https://newsapi.org/v2/top-headlines?category=<<news_category>>&apikey=<<api_key>>&page=1)
-
To get trending news use the following endpoint. [Top Headlines endpoint] (https://newsapi.org/v2/top-headlines?country=in&apikey=<<api_key>>&page=1)
-
To search for any news based on serach text . [News search endpoint] (https://newsapi.org/v2/everything?q=<<search_text>>&apiKey=<<api_key>>&language=en&page=1)
P.S :- You need to generate the API_KEY for the above endpoints and replace
<<api_key>> with it.
You need to signup to [NEWSAPI] (https://newsapi.org/register).
- After registration, API key is generated for you.