-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathterminal-commands-output_npm-init_python-venv.sh
280 lines (205 loc) · 10.3 KB
/
terminal-commands-output_npm-init_python-venv.sh
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP> cd .\Heroku-node-http\
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-node-http> npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (heroku-node-http)
version: (1.0.0)
description: example of a basic node-based server for the heroku lab 3 project
entry point: (app.js)
test command: N/A for now but you should use these
git repository: https://github.com/MissCrispenCakes/VIDEO_HELP/Heroku-node-http
keywords: node heroku git npm server
author: github.com/MissCrispenCakes
license: (ISC) MIT
About to write to E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-node-http\package.json:
{
"name": "heroku-node-http",
"version": "1.0.0",
"description": "example of a basic node-based server for the heroku lab 3 project",
"main": "app.js",
"scripts": {
"test": "N/A for now but you should use these"
},
"repository": {
"type": "git",
"url": "https://github.com/MissCrispenCakes/VIDEO_HELP/Heroku-node-http"
},
"keywords": [
"node",
"heroku",
"git",
"npm",
"server"
],
}
Is this OK? (yes)
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-node-http> cd ..\AR-GPS\localhost-AR-example\server-node-express\
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\AR-GPS\localhost-AR-example\server-node-express> npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (server-node-express)
version: (1.0.0)
description: example of a basic node-based server using express for the localhost setup Quiz 3 AR
entry point: (index.js)
test command: N/A for now but you should use these
git repository: https://github.com/MissCrispenCakes/VIDEO_HELP/AR-GPS/localhost-AR-examples/server-node-express
keywords: express node localhost AR
author: github.com/MissCrispenCakes
license: (ISC) MIT
About to write to E:\GitHub\VIDEO_HELP\VIDEO_HELP\AR-GPS\localhost-AR-example\server-node-express\package.json:
{
"name": "server-node-express",
"version": "1.0.0",
"description": "example of a basic node-based server using express for the localhost setup Quiz 3 AR",
"main": "index.js",
"scripts": {
"test": "N/A for now but you should use these"
},
"repository": {
"type": "git",
"url": "https://github.com/MissCrispenCakes/VIDEO_HELP/AR-GPS/localhost-AR-examples/server-node-express"
},
"keywords": [
"express",
"node",
"localhost",
],
"author": "github.com/MissCrispenCakes",
"license": "MIT"
}
Is this OK? (yes)
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\AR-GPS\localhost-AR-example\server-python> cd ..\..\..\Heroku-flask-class\
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> python -m venv venv
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> .\venv\Scripts\Activate.ps1
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> python -m pip install --upgrade pip
Requirement already satisfied: pip in e:\github\video_help\video_help\heroku-flask-class\venv\lib\site-packages (21.2.4)
Collecting pip
Using cached pip-22.0.4-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.4
Uninstalling pip-21.2.4:
Successfully uninstalled pip-21.2.4
Successfully installed pip-22.0.4
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> pip install flask gunicorn
Collecting flask
Using cached Flask-2.0.3-py3-none-any.whl (95 kB)
Collecting gunicorn
Using cached gunicorn-20.1.0-py3-none-any.whl (79 kB)
Collecting Jinja2>=3.0
Using cached Jinja2-3.0.3-py3-none-any.whl (133 kB)
Collecting click>=7.1.2
Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting Werkzeug>=2.0
Using cached Werkzeug-2.0.3-py3-none-any.whl (289 kB)
Collecting itsdangerous>=2.0
Using cached itsdangerous-2.1.1-py3-none-any.whl (15 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting MarkupSafe>=2.0
Using cached MarkupSafe-2.1.1-cp310-cp310-win_amd64.whl (17 kB)
Installing collected packages: Werkzeug, MarkupSafe, itsdangerous, gunicorn, colorama, Jinja2, click, flask
Successfully installed Jinja2-3.0.3 MarkupSafe-2.1.1 Werkzeug-2.0.3 click-8.0.4 colorama-0.4.4 flask-2.0.3 gunicorn-20.1.0 itsdangerous-2.1.1
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> pip freeze > requirements.txt
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> python .\app.py
* Serving Flask app 'app' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [23/Mar/2022 16:37:37] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [23/Mar/2022 16:37:37] "GET /script.js HTTP/1.1" 404 -
127.0.0.1 - - [23/Mar/2022 16:37:38] "GET /static/script.js HTTP/1.1" 200 -
127.0.0.1 - - [23/Mar/2022 16:37:38] "GET /script.js HTTP/1.1" 404 -
127.0.0.1 - - [23/Mar/2022 16:37:45] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [23/Mar/2022 16:37:45] "GET /script.js HTTP/1.1" 404 -
127.0.0.1 - - [23/Mar/2022 16:37:45] "GET /static/script.js HTTP/1.1" 304 -
127.0.0.1 - - [23/Mar/2022 16:37:46] "GET /script.js HTTP/1.1" 404 -
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> deactivate
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> pip uninstall -r requirements.txt -y
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Skipping colorama as it is not installed.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Skipping Flask as it is not installed.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Skipping gunicorn as it is not installed.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Skipping itsdangerous as it is not installed.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Skipping Jinja2 as it is not installed.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Skipping MarkupSafe as it is not installed.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Skipping Werkzeug as it is not installed.
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> .\venv\Scripts\Activate.ps1
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> pip uninstall -r requirements.txt -y
Found existing installation: click 8.0.4
Uninstalling click-8.0.4:
Successfully uninstalled click-8.0.4
Found existing installation: colorama 0.4.4
Uninstalling colorama-0.4.4:
Successfully uninstalled colorama-0.4.4
Found existing installation: Flask 2.0.3
Found existing installation: gunicorn 20.1.0
Uninstalling gunicorn-20.1.0:
Successfully uninstalled gunicorn-20.1.0
Found existing installation: itsdangerous 2.1.1
Uninstalling itsdangerous-2.1.1:
Successfully uninstalled itsdangerous-2.1.1
Found existing installation: Jinja2 3.0.3
Uninstalling Jinja2-3.0.3:
Successfully uninstalled Jinja2-3.0.3
Found existing installation: MarkupSafe 2.1.1
Uninstalling MarkupSafe-2.1.1:
Successfully uninstalled MarkupSafe-2.1.1
Found existing installation: Werkzeug 2.0.3
Uninstalling Werkzeug-2.0.3:
Successfully uninstalled Werkzeug-2.0.3
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> deactivate
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> rm -r .\venv\
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> ls
Directory: E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2022-03-23 8:56 PM static
d----- 2022-03-23 4:09 PM templates
-a---- 2022-03-24 2:43 AM 1056 app.py
-a---- 2022-03-24 2:59 PM 2 count.txt
-a---- 2022-03-23 9:26 PM 28 newfile.txt
-a---- 2022-03-23 8:28 PM 21 Procfile
-a---- 2022-03-24 2:58 PM 272 requirements.txt
-a---- 2022-03-24 2:34 AM 4 tempfile.txt
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> python -m venv venv
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> .\venv\Scripts\Activate.ps1
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> ls
Directory: E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2022-03-23 8:56 PM static
d----- 2022-03-23 4:09 PM templates
d----- 2022-03-24 4:19 PM venv
-a---- 2022-03-24 2:43 AM 1056 app.py
-a---- 2022-03-24 2:59 PM 2 count.txt
-a---- 2022-03-23 9:26 PM 28 newfile.txt
-a---- 2022-03-23 8:28 PM 21 Procfile
-a---- 2022-03-24 2:58 PM 272 requirements.txt
-a---- 2022-03-24 2:34 AM 4 tempfile.txt
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> python -m pip install --upgrade pip
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> pip install flask gunicorn
(venv) PS E:\GitHub\VIDEO_HELP\VIDEO_HELP\Heroku-flask-class> pip freeze > requirements.txt