dev-_007haste-server 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/package.json +1 -1
- package/server.js +2 -1
- package/README +0 -23
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
npm init -y
|
|
2
|
+
npm install express
|
|
3
|
+
npm start
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
node node_modules/dev-_007haste-server/server.js
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
))))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
https.createServer(sslOptions, app).listen(PORT, () => {
|
|
15
|
+
console.log(`HTTPS Server running at https://127.0.0.1:${PORT}`);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
https.createServer(sslOptions, app).listen(PORT, () => {
|
|
19
|
+
console.log(`HTTPS Server running at https://ip.addr:${PORT}`);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -115,5 +115,6 @@ app.get('/data/:id', (req, res) => {
|
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
https.createServer(sslOptions, app).listen(PORT, () => {
|
|
118
|
-
console.log(`HTTPS Server running at https://
|
|
118
|
+
console.log(`HTTPS Server running at https://127.0.0.1:${PORT}`);
|
|
119
119
|
});
|
|
120
|
+
|
package/README
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
npm init -y
|
|
2
|
-
npm install express
|
|
3
|
-
npm start
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
+++ bashrc
|
|
7
|
-
alias haste='node DATA/haste.server/server.js'
|
|
8
|
-
|
|
9
|
-
# dev-_007haste-server
|
|
10
|
-
|
|
11
|
-
`dev-_007haste-server` — это пакет для запуска сервера, который можно использовать для разработки и тестирования приложений. В этом файле приведены инструкции по установке, настройке и запуску сервера.
|
|
12
|
-
|
|
13
|
-
## Установка
|
|
14
|
-
|
|
15
|
-
Для начала тебе нужно установить этот пакет в свой проект с помощью npm:
|
|
16
|
-
|
|
17
|
-
1. Перейди в директорию твоего проекта.
|
|
18
|
-
2. Открой терминал в этой директории.
|
|
19
|
-
3. Выполни команду:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm install dev-_007haste-server
|
|
23
|
-
|