Understanding the technologies - Angular 8 and ASP.NET Web API Core 3
Course Notes
Yesterday, I followed some of the preview lessons and have taken the following points:
Instead of using a Visual Studio template to create an integrated Angular and WebAPI project, I'm going to the follow the advice on the course to create these separately. I'll use dotnet CLI to create the web API project and Angular CLI (ng) to create the separate Angular project.
The following needed to be installed as prerequisites:
.NET Core SDK V3.0 - This is required to create the WEB API project
To check all that are installed -
>dotnet --info
To check the default version -
>dotnet --version
I already had V3.1 of the SDK installed so needed to switch back to the earlier version:
NodeJS V12.16.3 - This is required to serve and run the Angular App
NPM V6.14.5 - This is used to add libraries for for the Angular App (like nuget)
I'm also going to be using VS Code rather than Visual Studio Community as my IDE. I want to see how this work in practice.
Other tools to install:
Postman - use native app rather than chrome app
SQLite Browser - Lightweight browser for SQLite
Walking Skeleton - a tiny end to end implementation.
Web API
To create the web api project
>dotnet new webapi -n BoatyTripr.API
VSCode Extensions
C# - C# for Visual Studio Code (powered by OmniSharp)
C# Extensions
NuGet Package Manager
Immediate feedback
Set auto save to 'on' and run
>dotnet watch run
Entity Framework
Tools that need to be installed -
>dotnet tools install --global dotnet-ef
Angular CLI
Install https://cli.angular.io/ with
>npm install -g @angular/cli
Then create a new project with
>ng new BoatyTripr-SPA
I had to move my project to get this to work. I think it failed as the file paths became too long.
Yesterday, I followed some of the preview lessons and have taken the following points:
Instead of using a Visual Studio template to create an integrated Angular and WebAPI project, I'm going to the follow the advice on the course to create these separately. I'll use dotnet CLI to create the web API project and Angular CLI (ng) to create the separate Angular project.
The following needed to be installed as prerequisites:
.NET Core SDK V3.0 - This is required to create the WEB API project
To check all that are installed -
>dotnet --info
To check the default version -
>dotnet --version
I already had V3.1 of the SDK installed so needed to switch back to the earlier version:
NodeJS V12.16.3 - This is required to serve and run the Angular App
NPM V6.14.5 - This is used to add libraries for for the Angular App (like nuget)
I'm also going to be using VS Code rather than Visual Studio Community as my IDE. I want to see how this work in practice.
Other tools to install:
Postman - use native app rather than chrome app
SQLite Browser - Lightweight browser for SQLite
Walking Skeleton - a tiny end to end implementation.
Web API
To create the web api project
>dotnet new webapi -n BoatyTripr.API
VSCode Extensions
C# - C# for Visual Studio Code (powered by OmniSharp)
C# Extensions
NuGet Package Manager
Immediate feedback
Set auto save to 'on' and run
>dotnet watch run
Entity Framework
Tools that need to be installed -
>dotnet tools install --global dotnet-ef
Angular CLI
Install https://cli.angular.io/ with
>npm install -g @angular/cli
Then create a new project with
>ng new BoatyTripr-SPA
I had to move my project to get this to work. I think it failed as the file paths became too long.
Comments
Post a Comment