-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes
98 lines (83 loc) · 2.56 KB
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
ASPNET Core and Angular from scratch C#: 17. Publishing (new) - Video: 1 -> 00:00
git push -u origin master
git push -f origin master
Extensions:
C#
C# Extensions
NuGet Package Manager
// Web API
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet tool install --global dotnet-ef --version 3.1.0
dotnet add package Microsoft.IdentityModel.Tokens --version 5.6.0
dotnet add package System.IdentityModel.Tokens.Jwt --version 5.6.0
dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer --version 3.1.1
dotnet add package Microsoft.AspNetCore.Mvc.NewtonsoftJson
using Microsoft.Extensions.DependencyInjection;
Ctrl + Shift P - Nuget Package Manager: Add Package - Search AutoMapper - AutoMapper.Extentions.Microsoft.DependencyInjection - Choose the latest version.
Ctrl + Shift P - Nuget Package Manager: Add Package - Search CloudinaryDotNet
dotnet user-secrets
dotnet user-secrets set "AppSettings:Token" "super secret key"
dotnet ef migrations add ExtendedUserClass
dotnet ef database update
// Client
npm install -g @angular/cli
ng new DatingApp-SPA
npm install bootstrap font-awesome alertifyjs
npm install @types/alertifyjs
npm install @auth0/angular-jwt
npm install ngx-bootstrap@3.0.1 --save
npm install bootswatch
npm install ngx-gallery
npm install ng2-file-upload --save
npm install time-ago-pipe --save
ng g guard auth --skipTests // cd to the _guards folder first, then ng g guard auth --skipTests, then Choose 'CanActivate'
delete .git
// Base Directory
git init
create new repository
copy git remote origin
Extensions:
Angular Snippets
Angular Files
Angular Language Service
Auto Rename Tag
Bracket Pair Colorizer
Debugger for Chrome
Material Icon Theme
Prettier
TSLint
angular2-switcher
DTO - Data Transfer Object
[ApiController]
[Route("api/[controller]")]
public class ValuesController : ControllerBase
{
// GET api/values
[HttpGet]
public ActionResult<IEnumerable<string>> Get()
{
return new string[] { "value1", "value2" };
}
// GET api/values/5
[HttpGet("{id}")]
public ActionResult<string> Get(int id)
{
return "value";
}
// POST api/values
[HttpPost]
public void Post([FromBody] string value)
{
}
// PUT api/values/5
[HttpPut("{id}")]
public void Put(int id, [FromBody] string value)
{
}
// DELETE api/values/5
[HttpDelete("{id}")]
public void Delete(int id)
{
}
}