Skip to content

ASP.NET Core + Angular 6.1 SPA with an API server And IdentityServer4

Notifications You must be signed in to change notification settings

maylordev/AspNetCoreAngular6WithApiAndIdentityServer4

Repository files navigation

.NET CORE 2.1 & Angular 6.1.6 Web Application

Getting Started

In your first terminal / bash/ command prompt

  1. Navigate to the LiveStreams.Web/ClientApp folder. (this is where the Angular app is located) Then run:

        npm install
    

    (this will install all of the NPM packages for the Angular app)

  2. Stay in the LiveStreams.Web/ClientApp folder and run:

        ng build
    

    (this will build the Angular app)

  3. Navigate back to LiveStrams.Web/ folder. (main folder for Web project) Then run:

        dotnet restore
    

    (this should install any dependecies that .NET needs)

  4. Stay in the LiveStrams.Web/ folder. Then run:

        dotnet run
    

    (this should run the Web application at https://localhost:5001)

In your second terminal / bash/ command prompt

  1. Navigate to the /LiveStreams.Api/ folder. (main folder for the API project) Then run:

     dotnet restore
    
  2. Stay in the /LiveStreams.Api/ folder and run:

    dotnet run

(this should run the API on https://localhost:5050/api)

ASP.NET Core + Angular 6.1 + API server + IdentityServer 4

This solution has 3 projects.

  1. LiveStreams.Api --> Intended to be the API to send data from the database to the Web Client. Runs locally on http://localhost:5050

Restore dependencies:

    dotnet restore

Run before using project

    dotnet run
  1. LiveStreams.IdentityServer4 --> Templated from the dotnet templates

Install with:

    dotnet new -i identityserver4.templates

Then using:

    dotnet new is4aspid
  1. LiveStreams.Web --> Intended to be the Web Client project. This serves the Angular 6 application. It runs locally on http://localhost:5001

Restore dependencies:

    dotnet restore

Run before using project

    dotnet run

About

ASP.NET Core + Angular 6.1 SPA with an API server And IdentityServer4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published