Skip to content

titodrum/dotnetcoreapp

Repository files navigation

Development History

Dotnet Project

dotnet --info dotnet -h dotnet new -h

List all project templates available dotnet new list

Create new solution dotnet new sln

Create a webapi dotnet new webapi -n API

List solution projects dotnet sln list

Add project to solution dotnet sln add API

Start API project dotnet run

Allow https cert dotnet dev-certs https --trust

Entity Framework

Install dotnet-ef dotnet tool install --global dotnet-ef --version 7.0.11

Update dotnet-ef dotnet tool update --global dotnet-ef --version 7.0.11

Add migrations dotnet-ef migrations add InitialCreate -o Data/Migrations

Creat database dotnet-ef database update

Create Angular project

(link1)[nvm-sh/nvm#400] (link2)[https://docs.npmjs.com/downloading-and-installing-node-js-and-npm] (link3)[https://angular.io/guide/setup-local]

Install Angular (version 16.2.5) npm i -g @angular/cli@16.2.5

Update node version to support angular version nvm install v16.14.0 --reinstall-packages-from=16.13.0

Create Angular client ng new client

Run client app ng serve

Add new components ng g c home --skip-tests ng g c members/member-list --skip-tests ng g c members/member-details --skip-tests ng g c messages --skip-tests ng g c resgister --skip-tests ng g c nav --skip-tests ng g c lists --skip-tests

Add new service ng g s _services/account --skip-tests

Adding angular bootstrap from ngx-bootstrap

Install font-awesome for icons npm install font-awesome

Install bootstrap npm install ngx-bootstrao bootstrap font-awesome

Install toastr npm instal ngx-toastr --save npm install @angular/animations --save

List ng g cli commands ng g --help

Add ng guards to grant access to routes ng g g _guards/auth --dry-run

Add ng interceptors to handle errors ng g interceptor _interceptors/error --dry-run

Add environment configuration ng g environments

Install github mkcert as admin using choco in windows link

Modify Entity and update migration dotnet-ef migrations add UserPasswordAdded

Apply all migrations dotnet-ef database update -v

About

tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors