This repository has been archived by the owner on Apr 26, 2020. It is now read-only.
/
glossary.txt
170 lines (128 loc) · 5.62 KB
/
glossary.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
AJAX
Asynchronous JavaScript + XML; JSON is primarily used for requests;
HTML + CSS + JS + DOM + XML and XMLHttpRequest-object;
Combination of theses tools allows quick and incremental updates to an app
without reloading the entire browser page; "Asynchronous XMLHttpRequest";
AWS
AWS Security Group
Virtual firewall to control traffic to and from instance;
ECR
Elastic Container Registry; privat image registry on AWS;
IAM user
Identity and Access Management;
Part of a group with defined permissions;
Has access-key and secret-key
via terminal or (~/.aws/credentials/credentials.csv)
VPC (Virtual Private Cloud) and Subnets
- CIDR: Classless Inter-Domain Routing block; primary IPv4 adresses
for your VPN; Must be specified when creating a subnet or a VPC;
- VPC: virtual private cloud; logically isolated from other virtual
networks in the AWS Cloud; lunch aws EC2 instances into your VCP;
You can define IP adress range for your VPC, add subnets and associate
security groups; can span different zones;
- subnet: range of IP addresses in your VPC; You can launch AWS
resources into a specified subnet; public subnet for ressources that
need access to the internet and privat subnet for ressources that wont
be connected to the internet (via IPv4); can not span different zones;
Bash
eval [arg ...]
The args are read and concatenated together into a single command. This
command is then read and executed by the shell, and its exit status is
returned as the value of eval. If there are no args, or only null
arguments, eval returns 0;
i.e. eval $(docker-machine env testdriven-prod);
Cypress
./node_modules/.bin/cypress open --config baseUrl=http://localhost
leverages jQuery’s selector engine; asynchronous; commands return promises;
DOM elements wraped in retry-and-timeout logig; "queue of commands";
Docker
Docker
Docker Engine (Client-server application made up of the Docker daemon)
+ REST API that specifies interfaces for interacting with the daemon;
Docker Engine
Usually referred to as "Docker";
Client-server application made up of the Docker daemon;
Docker Compose
Tool for defining and running multi-container Docker applications;
Use a YAML file to configure your application’s services;
1. Define app-env with a Dockerfile;
2. Define services with docker-compose.yml so they can be run together in
an isolated environment;
3. "docker-compose up" to run app
"docker-compose build" build image from Dockerfile;
"docker-compose up -d --build" fires up container;
"docker-compose logs";
"docker-compose exec users python manage.py test" executes commands
defined in manage.py;
Docker Machine
Tool that lets you install Docker Engine on virtual hosts;
"docker-machine env <HOSTNAME>" to point at host <HOSTNAME>
point to engine:
"docker-machine env docker-egine-name" set active host
"eval $(docker-machine env testdriven-prod)"
Selection indicated by *
"docker-machine ls --timeout "120"" # timeout extended in case of slow
connection.
docker-machine --debug regenerate-certs -f default;
Docker Image
Created by sequence of commands written in a file called as Dockerfile;
An image is a compressed, self-contained piece of software which has to be
unwrapped in order to use the functionality;
Enviroment
export export REACT_APP_USERS_SERVICE_URL=http://localhost
Flask
Blueprint
A blueprint defines a collection of views, templates, static files and
other elements that can be applied to an application;
Migrate
"...handles SQLAlchemy database migrations for Flask applications using
Alembic."
request
Data from client gets sent to server as global request object;
flask.request lets you process this pbject;
render_template
Flask functionality to render a template;
Gunicorn
Python WSGI HTTP Server for UNIX; Interacts with nginx and actual python
web-app code to serve dynamical content;
Pre-fork worker model:
Master creates forks which handle each request; A fork is a completely
separate *nix process; "pre-fork" means that these processes are forked
before a request comes in;
Gevent:
workers-threads are asynchronous;
Hash-based routing
...changes in the hash don’t trigger page reload;
.com/#/something/list => #/something/list does not get sent to the server;
JWT
JSON Web Tokens
Nginx
Web-server,reverse proxy, HTTP cache, and load balancer;
# for serving static content;
Low memory; High concurrency; Asynchronous event-driven; Requests are
handled in a single thread; Master porcess controls multiple worker
processes;
OpenAPI Specification (formerly Swagger)
API description format; describes available endpoints and respective
operations, operation parameter and input, authentification methodes,
contact, license and other infos; YAML or JSON;
Race Condition
Behavior of a system is dependent on the sequence or timing of other
uncontrollable events; React solves this via Lifecycle Methodes;
React
Component Lifecycle Methodes
Testing:
Jest
JavaScript Testing Framework;
Snapshot Testing tests UI component against an older snapshot of it
that is stored alongside the test;
Enzyme
Component testing library; Tests component output;
shallow(<Component />) allows isolated testing of components;
mount(<Component />) testing within whole lifecycle. For components
that may interact with the DOM api. Full DOM renderig;
Token-based-Authentification
Credentials to servers; Server returns token; Every server-call includes the token;
Pro. Stateless and Single Sign On; Cons: Cross-site Scripting if not stored as Cooky;
Travis
Enviroment Variables