-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathsession-39.txt
96 lines (75 loc) · 2.02 KB
/
session-39.txt
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
web-dev.daws78s.online --> frontend
http --> fixed response
https://web-dev.daws78s.online
CDN --> frontend ALB --> https://web-dev.daws78s.online --> frontend TG --> frontend instance on port no 80 --> /api/ --> backend.app-dev.daws78s.online --> backend TG on port no 8080 --> DB
infra is good now
entire code --> zip file (integration of code) --> Continous Integration
Build and release engineers
---------------------------
clone manually
npm install --> get the libraries from internet
npm build
push commit to GitHub
---------------------
Shift Left
---------------
clone the code
compile the code
unit testing
scan the code --> DevSecOps
Static source code analysis --> SonarQube
SAST --> Security point of view
DAST --> Dynamic application security testing
Open source scanning -->
docker image scanning --> AWS ECR
deploy to DEV
functional testing
Old days
---------------------
deploy in DEV
deploy in QA --> Run test cases
deploy in PROD
sanity testing
regression testing
security testing
vulnerabilities testing
brick --> basic unit of the block
wall --> testing the wall is functional testing --> good
function --> testing a function is called unit testing
Git
--------------
GitOps -> everything should be inside git, no manual process
Git --> single source of truth, version control
Git
-----------------
created repo in console
clone the repo
add authentication
do changes
git add . --> add code to temp area
git commit -m "some" --> commit the code to local repo
git push --> push the code to central/remote repo
existing folder
----------------
create repo in central
git init --> .git directory
git remote add orign <git-url>
git add git commit git push
generate public/private key pair
keep public key in server
keep private key with us
pass private key at the time of authentication
ssh config
.ssh --> create file config without any extension
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/github
branches
merge
rebase
conflicts
branching strategy
rm -rf .git
git init
git remote add origin <url>