All Projects → DanWahlin → AngularCLI-ASPNET-Core-CustomersService

DanWahlin / AngularCLI-ASPNET-Core-CustomersService

Licence: other
Example of integrating Angular with ASP.NET Core RESTful Services

Programming Languages

C#
18002 projects
typescript
32286 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to AngularCLI-ASPNET-Core-CustomersService

MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (+155.74%)
Mutual labels:  entity-framework-core, asp-net-core, webapi
WebApiJwt
Asp.NET Core 2.0 WebApi JWT Authentication with Identity & MySQL
Stars: ✭ 118 (+93.44%)
Mutual labels:  entity-framework-core, asp-net-core, webapi
SPA-With-Blazor
Creating a Single Page Application with Razor pages in Blazor using Entity Framework Core database first approach.
Stars: ✭ 27 (-55.74%)
Mutual labels:  entity-framework-core, asp-net-core, webapi
N-Tier-Architecture
This is a n-layer architecture based on Common web application architectures.
Stars: ✭ 105 (+72.13%)
Mutual labels:  entity-framework-core, asp-net-core, webapi
CRUD.ASPCore.Reactjs.WebAPI.EF
CRUD Operations in ASP.NET Core application using React.js , Web API and Entity Framework core DB first approach with the help of VS 2017.
Stars: ✭ 80 (+31.15%)
Mutual labels:  entity-framework-core, asp-net-core, webapi
chatle
chat le with ASP.NET Core
Stars: ✭ 20 (-67.21%)
Mutual labels:  entity-framework-core, asp-net-core
eixample
Multi-Tenant .NET 6 Architecture (Angular, Vue, React)
Stars: ✭ 61 (+0%)
Mutual labels:  entity-framework-core, asp-net-core
Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
Stars: ✭ 46 (-24.59%)
Mutual labels:  entity-framework-core, asp-net-core
ASP.NET-CORE-MVC-Sample-Registration-Login
C# Asp.Net Core MVC Sample Registration/Login/Email Activation Form with MsSQL Server/Entity Framework/Onion Architecture
Stars: ✭ 37 (-39.34%)
Mutual labels:  entity-framework-core, asp-net-core
dotnet-learning
Материалы для обучения C# и ASP.NET
Stars: ✭ 62 (+1.64%)
Mutual labels:  entity-framework-core, webapi
SQLiteEncryptionUsingEFCore
SQLite Encryption using Entity Framework Core (EFCore)
Stars: ✭ 42 (-31.15%)
Mutual labels:  entity-framework-core, asp-net-core
car-rental
CarRental Project
Stars: ✭ 13 (-78.69%)
Mutual labels:  entity-framework-core, asp-net-core
MusicDatabase-API
This project is able to manage your songs, artists, albums and more by RESTful API. Developed with ASP.NET Core 2.0 & EF Core and used PostgreSQL Database Provider. Implemented Swagger to project.
Stars: ✭ 18 (-70.49%)
Mutual labels:  entity-framework-core, asp-net-core
RESTvsGRPC
Evaluating Performance of REST vs. gRPC
Stars: ✭ 36 (-40.98%)
Mutual labels:  asp-net-core, webapi
ApiDmS
Open Source Document Management System.
Stars: ✭ 16 (-73.77%)
Mutual labels:  asp-net-core, webapi
DotNETCarRental
Daily car rental simulation with ASP.NET.
Stars: ✭ 13 (-78.69%)
Mutual labels:  entity-framework-core, webapi
QueryNinja
Framework for dynamic query building regardless of the source and target.
Stars: ✭ 19 (-68.85%)
Mutual labels:  entity-framework-core, asp-net-core
ASPCore.BlazorCrud
CRUD Using Blazor And Entity Framework Core
Stars: ✭ 39 (-36.07%)
Mutual labels:  entity-framework-core, asp-net-core
Kodkod
https://github.com/alirizaadiyahsi/Nucleus Web API layered architecture startup template with ASP.NET Core 2.1, EF Core 2.1 and Vue Client
Stars: ✭ 45 (-26.23%)
Mutual labels:  entity-framework-core, asp-net-core
RestWithASP-NETUdemy
No description or website provided.
Stars: ✭ 40 (-34.43%)
Mutual labels:  entity-framework-core, asp-net-core

Angular ASP.NET Core Project

This project provides an example of getting started using ASP.NET Core and Angular together in one project and is an updated version of the code shown in the Integrating Angular with ASP.NET Core RESTful Services on Pluralsight. If you're coming from the Pluralsight course you'll find the Angular code for the project in the Client folder now.

The project has the following goals:

  • Keep the Angular project code completely separate from the ASP.NET Core code to make updates of either technology easier in the future. This was a key consideration when organizing the folders/files in the project.

  • Provide a way to serve an Angular application using an MVC view (you can easily change this to serve from a Razor Page as well).

  • Allow standard MVC controllers/views to be used in situations where part of the application runs outside of Angular.

  • Support running the Angular project completely separate from the ASP.NET Core Web API if desired (CORS is enabled in the Startup.cs project). See the notes below if you want to use this option.

Running the Project

To run the project perform the following steps:

NOTE: If you're on Windows, download the project from Github as a .zip file, and want to open the project in Visual Studio, make sure you unblock the .zip file first. Right-click on it, select Properties, and check the Unblock checkbox.

  1. Install Node.js 12.16.x or higher - https://nodejs.org

  2. Install ASP.NET core 3.1 or higher - https://dot.net

  3. Install the Angular CLI:

    npm install -g @angular/cli

  4. Open a command prompt and cd into the project's Client folder

  5. Run npm install

  6. Run ng build --watch to start the Angular build process and watch for changes.

  7. Open a new command window in the root of the project and run the following commands:

dotnet restore
dotnet build
dotnet watch run
  1. Visit http://localhost:5000 in the browser

  2. An MVC view is serving the Angular application.

NOTE: If you get a certificate error due to the HTTPS redirect, run the following command to install a local dev certificate:

dotnet dev-certs https --trust

Running Angular Separately from ASP.NET Core

If you'd like to run the Angular project completely separate from ASP.NET Core perform the following steps:

  1. Open a new command window in the root of the project and run the following commands to restore, build and run the ASP.NET core project:
dotnet restore
dotnet build
dotnet watch run
  1. Open the Client/src/environments/environment.ts file and change the apiUrl property to http://localhost:5000/api/

  2. Launch the Angular project by running ng serve -o

  3. Note that to do an ng build you'll need to open the Client/angular.json file and change the outputDirectory property to a value of dist.

A few additional notes:

  • CORS is enabled in the Startup.cs file. You'll more than likely want to lock-down some of the settings for it though.
  • Cross-Site Request Forgery (XSRF) is turned on by default for the Web API POST/PUT/DELETE methods. You may want to remove the associated attribute from these methods since in a real-world scenario you'd likely implement token authentication in the API when ASP.NET Core is running as a separate/reuseable service.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].