Skip to content

Sample project for angular 2x and asp.net core 2.2

Notifications You must be signed in to change notification settings

DileepCD/NewsApp

Repository files navigation

News-App

This project was generated with Angular CLI version 1.6.3. ab#22

Estimated Efforts to complete this project is 20-25 hours

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

Development server

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.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|module.

Build

Run ng build to build the project. The build artifacts will be stored in the wwwroot/ directory.

Running lint

Run npm run lint to check linting errors.(https://eslint.org/).

Running unit tests

Run npm run test to execute both Mocha and angular test cases [Mocha] & [Karma] (https://mochajs.org/) & (https://karma-runner.github.io)

Running end-to-end tests

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.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Command used to generate this project

Front-end Project is originally generated using Angular CLI, and backend is built in ASP.Net Core using dotnet core CLI.

The NEWS API to be used as data source

P.S :- You need to generate the API_KEY for the above endpoints and replace <<api_key>> with it.

To register for an API key, follow these steps:

You need to signup to [NEWSAPI] (https://newsapi.org/register).

  • After registration, API key is generated for you.

About

Sample project for angular 2x and asp.net core 2.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published