An open API service indexing awesome lists of open source software.

https://github.com/pencsharpener/udemy-angular-dotnetapi-neilcummings

code along to udemy course at https://www.udemy.com/course/learn-to-build-an-e-commerce-app-with-net-core-and-angular/
https://github.com/pencsharpener/udemy-angular-dotnetapi-neilcummings

Last synced: 5 days ago
JSON representation

code along to udemy course at https://www.udemy.com/course/learn-to-build-an-e-commerce-app-with-net-core-and-angular/

Awesome Lists containing this project

README

          

# udemy-angular-dotnetapi-neilcummings
code along to udemy course at https://www.udemy.com/course/learn-to-build-an-e-commerce-app-with-net-core-and-angular/

## dotnet CLI

all from the root folder of the project

`dotnet new sln --name DotnetAngular`
`dotnet new webapi -o src/Udemy.Skinet.Api`
`dotnet sln add ./src/Udemy.Skinet.Api`
`dotnet sln list`

`dotnet new classlib -o src/Udemy.Skinet.Core`
`dotnet new classlib -o src/Udemy.Skinet.Infrastructure`
`dotnet sln add ./src/Udemy.Skinet.Core`
`dotnet sln add ./src/Udemy.Skinet.Infrastructure`

## EF Core

in Visual Studio 2019 Package Mananger Console

`Add-Migration InitialCreate -o Data/Migrations -c StoreContext`
`Update-Database`

### Identity Migrations

`Add-Migration IdentityInitial -o Identity/Migrations -c AppIdentityDbContext`

## Redis via Docker

```
docker run --name local-redis -p 6379:6379 -p 6380:6380 -d redis redis-server --appendonly yes
```

to test and ping the server on Windows

```
telnet localhost 6379
```

then [Enter]; ping
to exit: quit

```
redis-cli KEYS '*'
redis-cli GET
```