Explorar el Código

:recycle: seperating frontend from backend | adding hapi

master
TOJ hace 5 años
padre
commit
ea11ab6ea1

+ 0
- 0
backend/README.md Ver fichero


+ 30
- 0
backend/index.js Ver fichero

@@ -0,0 +1,30 @@
1
+'use strict';
2
+
3
+const Hapi = require('@hapi/hapi');
4
+
5
+const init = async () => {
6
+
7
+    const server = Hapi.server({
8
+        port: 3001,
9
+        host: 'localhost'
10
+    });
11
+
12
+    await server.start();
13
+    console.log('Server running on %s', server.info.uri);
14
+
15
+    server.route({
16
+        method: 'GET',
17
+        path: '/',
18
+        handler: (request, h) => {
19
+
20
+            return 'Hello World!';
21
+        }
22
+    });
23
+};
24
+
25
+process.on('unhandledRejection', (err) => {
26
+    console.log(err);
27
+    process.exit(1);
28
+});
29
+
30
+init();

+ 593
- 0
backend/package-lock.json Ver fichero

@@ -0,0 +1,593 @@
1
+{
2
+  "name": "siimee-backend",
3
+  "version": "1.0.0",
4
+  "lockfileVersion": 2,
5
+  "requires": true,
6
+  "packages": {
7
+    "": {
8
+      "name": "siimee-backend",
9
+      "version": "1.0.0",
10
+      "license": "UNLICENSED",
11
+      "dependencies": {
12
+        "@hapi/hapi": "^20.1.3"
13
+      }
14
+    },
15
+    "node_modules/@hapi/accept": {
16
+      "version": "5.0.2",
17
+      "resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-5.0.2.tgz",
18
+      "integrity": "sha512-CmzBx/bXUR8451fnZRuZAJRlzgm0Jgu5dltTX/bszmR2lheb9BpyN47Q1RbaGTsvFzn0PXAEs+lXDKfshccYZw==",
19
+      "dependencies": {
20
+        "@hapi/boom": "9.x.x",
21
+        "@hapi/hoek": "9.x.x"
22
+      }
23
+    },
24
+    "node_modules/@hapi/ammo": {
25
+      "version": "5.0.1",
26
+      "resolved": "https://registry.npmjs.org/@hapi/ammo/-/ammo-5.0.1.tgz",
27
+      "integrity": "sha512-FbCNwcTbnQP4VYYhLNGZmA76xb2aHg9AMPiy18NZyWMG310P5KdFGyA9v2rm5ujrIny77dEEIkMOwl0Xv+fSSA==",
28
+      "dependencies": {
29
+        "@hapi/hoek": "9.x.x"
30
+      }
31
+    },
32
+    "node_modules/@hapi/b64": {
33
+      "version": "5.0.0",
34
+      "resolved": "https://registry.npmjs.org/@hapi/b64/-/b64-5.0.0.tgz",
35
+      "integrity": "sha512-ngu0tSEmrezoiIaNGG6rRvKOUkUuDdf4XTPnONHGYfSGRmDqPZX5oJL6HAdKTo1UQHECbdB4OzhWrfgVppjHUw==",
36
+      "dependencies": {
37
+        "@hapi/hoek": "9.x.x"
38
+      }
39
+    },
40
+    "node_modules/@hapi/boom": {
41
+      "version": "9.1.2",
42
+      "resolved": "https://registry.npmjs.org/@hapi/boom/-/boom-9.1.2.tgz",
43
+      "integrity": "sha512-uJEJtiNHzKw80JpngDGBCGAmWjBtzxDCz17A9NO2zCi8LLBlb5Frpq4pXwyN+2JQMod4pKz5BALwyneCgDg89Q==",
44
+      "dependencies": {
45
+        "@hapi/hoek": "9.x.x"
46
+      }
47
+    },
48
+    "node_modules/@hapi/bounce": {
49
+      "version": "2.0.0",
50
+      "resolved": "https://registry.npmjs.org/@hapi/bounce/-/bounce-2.0.0.tgz",
51
+      "integrity": "sha512-JesW92uyzOOyuzJKjoLHM1ThiOvHPOLDHw01YV8yh5nCso7sDwJho1h0Ad2N+E62bZyz46TG3xhAi/78Gsct6A==",
52
+      "dependencies": {
53
+        "@hapi/boom": "9.x.x",
54
+        "@hapi/hoek": "9.x.x"
55
+      }
56
+    },
57
+    "node_modules/@hapi/bourne": {
58
+      "version": "2.0.0",
59
+      "resolved": "https://registry.npmjs.org/@hapi/bourne/-/bourne-2.0.0.tgz",
60
+      "integrity": "sha512-WEezM1FWztfbzqIUbsDzFRVMxSoLy3HugVcux6KDDtTqzPsLE8NDRHfXvev66aH1i2oOKKar3/XDjbvh/OUBdg=="
61
+    },
62
+    "node_modules/@hapi/call": {
63
+      "version": "8.0.1",
64
+      "resolved": "https://registry.npmjs.org/@hapi/call/-/call-8.0.1.tgz",
65
+      "integrity": "sha512-bOff6GTdOnoe5b8oXRV3lwkQSb/LAWylvDMae6RgEWWntd0SHtkYbQukDHKlfaYtVnSAgIavJ0kqszF/AIBb6g==",
66
+      "dependencies": {
67
+        "@hapi/boom": "9.x.x",
68
+        "@hapi/hoek": "9.x.x"
69
+      }
70
+    },
71
+    "node_modules/@hapi/catbox": {
72
+      "version": "11.1.1",
73
+      "resolved": "https://registry.npmjs.org/@hapi/catbox/-/catbox-11.1.1.tgz",
74
+      "integrity": "sha512-u/8HvB7dD/6X8hsZIpskSDo4yMKpHxFd7NluoylhGrL6cUfYxdQPnvUp9YU2C6F9hsyBVLGulBd9vBN1ebfXOQ==",
75
+      "dependencies": {
76
+        "@hapi/boom": "9.x.x",
77
+        "@hapi/hoek": "9.x.x",
78
+        "@hapi/podium": "4.x.x",
79
+        "@hapi/validate": "1.x.x"
80
+      }
81
+    },
82
+    "node_modules/@hapi/catbox-memory": {
83
+      "version": "5.0.1",
84
+      "resolved": "https://registry.npmjs.org/@hapi/catbox-memory/-/catbox-memory-5.0.1.tgz",
85
+      "integrity": "sha512-QWw9nOYJq5PlvChLWV8i6hQHJYfvdqiXdvTupJFh0eqLZ64Xir7mKNi96d5/ZMUAqXPursfNDIDxjFgoEDUqeQ==",
86
+      "dependencies": {
87
+        "@hapi/boom": "9.x.x",
88
+        "@hapi/hoek": "9.x.x"
89
+      }
90
+    },
91
+    "node_modules/@hapi/content": {
92
+      "version": "5.0.2",
93
+      "resolved": "https://registry.npmjs.org/@hapi/content/-/content-5.0.2.tgz",
94
+      "integrity": "sha512-mre4dl1ygd4ZyOH3tiYBrOUBzV7Pu/EOs8VLGf58vtOEECWed8Uuw6B4iR9AN/8uQt42tB04qpVaMyoMQh0oMw==",
95
+      "dependencies": {
96
+        "@hapi/boom": "9.x.x"
97
+      }
98
+    },
99
+    "node_modules/@hapi/cryptiles": {
100
+      "version": "5.1.0",
101
+      "resolved": "https://registry.npmjs.org/@hapi/cryptiles/-/cryptiles-5.1.0.tgz",
102
+      "integrity": "sha512-fo9+d1Ba5/FIoMySfMqPBR/7Pa29J2RsiPrl7bkwo5W5o+AN1dAYQRi4SPrPwwVxVGKjgLOEWrsvt1BonJSfLA==",
103
+      "dependencies": {
104
+        "@hapi/boom": "9.x.x"
105
+      },
106
+      "engines": {
107
+        "node": ">=12.0.0"
108
+      }
109
+    },
110
+    "node_modules/@hapi/file": {
111
+      "version": "2.0.0",
112
+      "resolved": "https://registry.npmjs.org/@hapi/file/-/file-2.0.0.tgz",
113
+      "integrity": "sha512-WSrlgpvEqgPWkI18kkGELEZfXr0bYLtr16iIN4Krh9sRnzBZN6nnWxHFxtsnP684wueEySBbXPDg/WfA9xJdBQ=="
114
+    },
115
+    "node_modules/@hapi/hapi": {
116
+      "version": "20.1.3",
117
+      "resolved": "https://registry.npmjs.org/@hapi/hapi/-/hapi-20.1.3.tgz",
118
+      "integrity": "sha512-ImOkrixD1kPUuvmSklwytPQ0sG8AtqydwU0JzvITLE6Z7wPMVf9i9LIMWywKPxHTNhCZ6W3oKP9yRjqM/IkHMQ==",
119
+      "dependencies": {
120
+        "@hapi/accept": "^5.0.1",
121
+        "@hapi/ammo": "^5.0.1",
122
+        "@hapi/boom": "^9.1.0",
123
+        "@hapi/bounce": "^2.0.0",
124
+        "@hapi/call": "^8.0.0",
125
+        "@hapi/catbox": "^11.1.1",
126
+        "@hapi/catbox-memory": "^5.0.0",
127
+        "@hapi/heavy": "^7.0.1",
128
+        "@hapi/hoek": "^9.0.4",
129
+        "@hapi/mimos": "^6.0.0",
130
+        "@hapi/podium": "^4.1.1",
131
+        "@hapi/shot": "^5.0.5",
132
+        "@hapi/somever": "^3.0.0",
133
+        "@hapi/statehood": "^7.0.3",
134
+        "@hapi/subtext": "^7.0.3",
135
+        "@hapi/teamwork": "^5.1.0",
136
+        "@hapi/topo": "^5.0.0",
137
+        "@hapi/validate": "^1.1.1"
138
+      },
139
+      "engines": {
140
+        "node": ">=12.0.0"
141
+      }
142
+    },
143
+    "node_modules/@hapi/heavy": {
144
+      "version": "7.0.1",
145
+      "resolved": "https://registry.npmjs.org/@hapi/heavy/-/heavy-7.0.1.tgz",
146
+      "integrity": "sha512-vJ/vzRQ13MtRzz6Qd4zRHWS3FaUc/5uivV2TIuExGTM9Qk+7Zzqj0e2G7EpE6KztO9SalTbiIkTh7qFKj/33cA==",
147
+      "dependencies": {
148
+        "@hapi/boom": "9.x.x",
149
+        "@hapi/hoek": "9.x.x",
150
+        "@hapi/validate": "1.x.x"
151
+      }
152
+    },
153
+    "node_modules/@hapi/hoek": {
154
+      "version": "9.2.0",
155
+      "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.0.tgz",
156
+      "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug=="
157
+    },
158
+    "node_modules/@hapi/iron": {
159
+      "version": "6.0.0",
160
+      "resolved": "https://registry.npmjs.org/@hapi/iron/-/iron-6.0.0.tgz",
161
+      "integrity": "sha512-zvGvWDufiTGpTJPG1Y/McN8UqWBu0k/xs/7l++HVU535NLHXsHhy54cfEMdW7EjwKfbBfM9Xy25FmTiobb7Hvw==",
162
+      "dependencies": {
163
+        "@hapi/b64": "5.x.x",
164
+        "@hapi/boom": "9.x.x",
165
+        "@hapi/bourne": "2.x.x",
166
+        "@hapi/cryptiles": "5.x.x",
167
+        "@hapi/hoek": "9.x.x"
168
+      }
169
+    },
170
+    "node_modules/@hapi/mimos": {
171
+      "version": "6.0.0",
172
+      "resolved": "https://registry.npmjs.org/@hapi/mimos/-/mimos-6.0.0.tgz",
173
+      "integrity": "sha512-Op/67tr1I+JafN3R3XN5DucVSxKRT/Tc+tUszDwENoNpolxeXkhrJ2Czt6B6AAqrespHoivhgZBWYSuANN9QXg==",
174
+      "dependencies": {
175
+        "@hapi/hoek": "9.x.x",
176
+        "mime-db": "1.x.x"
177
+      }
178
+    },
179
+    "node_modules/@hapi/nigel": {
180
+      "version": "4.0.2",
181
+      "resolved": "https://registry.npmjs.org/@hapi/nigel/-/nigel-4.0.2.tgz",
182
+      "integrity": "sha512-ht2KoEsDW22BxQOEkLEJaqfpoKPXxi7tvabXy7B/77eFtOyG5ZEstfZwxHQcqAiZhp58Ae5vkhEqI03kawkYNw==",
183
+      "dependencies": {
184
+        "@hapi/hoek": "^9.0.4",
185
+        "@hapi/vise": "^4.0.0"
186
+      },
187
+      "engines": {
188
+        "node": ">=12.0.0"
189
+      }
190
+    },
191
+    "node_modules/@hapi/pez": {
192
+      "version": "5.0.3",
193
+      "resolved": "https://registry.npmjs.org/@hapi/pez/-/pez-5.0.3.tgz",
194
+      "integrity": "sha512-mpikYRJjtrbJgdDHG/H9ySqYqwJ+QU/D7FXsYciS9P7NYBXE2ayKDAy3H0ou6CohOCaxPuTV4SZ0D936+VomHA==",
195
+      "dependencies": {
196
+        "@hapi/b64": "5.x.x",
197
+        "@hapi/boom": "9.x.x",
198
+        "@hapi/content": "^5.0.2",
199
+        "@hapi/hoek": "9.x.x",
200
+        "@hapi/nigel": "4.x.x"
201
+      }
202
+    },
203
+    "node_modules/@hapi/podium": {
204
+      "version": "4.1.3",
205
+      "resolved": "https://registry.npmjs.org/@hapi/podium/-/podium-4.1.3.tgz",
206
+      "integrity": "sha512-ljsKGQzLkFqnQxE7qeanvgGj4dejnciErYd30dbrYzUOF/FyS/DOF97qcrT3bhoVwCYmxa6PEMhxfCPlnUcD2g==",
207
+      "dependencies": {
208
+        "@hapi/hoek": "9.x.x",
209
+        "@hapi/teamwork": "5.x.x",
210
+        "@hapi/validate": "1.x.x"
211
+      }
212
+    },
213
+    "node_modules/@hapi/shot": {
214
+      "version": "5.0.5",
215
+      "resolved": "https://registry.npmjs.org/@hapi/shot/-/shot-5.0.5.tgz",
216
+      "integrity": "sha512-x5AMSZ5+j+Paa8KdfCoKh+klB78otxF+vcJR/IoN91Vo2e5ulXIW6HUsFTCU+4W6P/Etaip9nmdAx2zWDimB2A==",
217
+      "dependencies": {
218
+        "@hapi/hoek": "9.x.x",
219
+        "@hapi/validate": "1.x.x"
220
+      }
221
+    },
222
+    "node_modules/@hapi/somever": {
223
+      "version": "3.0.1",
224
+      "resolved": "https://registry.npmjs.org/@hapi/somever/-/somever-3.0.1.tgz",
225
+      "integrity": "sha512-4ZTSN3YAHtgpY/M4GOtHUXgi6uZtG9nEZfNI6QrArhK0XN/RDVgijlb9kOmXwCR5VclDSkBul9FBvhSuKXx9+w==",
226
+      "dependencies": {
227
+        "@hapi/bounce": "2.x.x",
228
+        "@hapi/hoek": "9.x.x"
229
+      }
230
+    },
231
+    "node_modules/@hapi/statehood": {
232
+      "version": "7.0.3",
233
+      "resolved": "https://registry.npmjs.org/@hapi/statehood/-/statehood-7.0.3.tgz",
234
+      "integrity": "sha512-pYB+pyCHkf2Amh67QAXz7e/DN9jcMplIL7Z6N8h0K+ZTy0b404JKPEYkbWHSnDtxLjJB/OtgElxocr2fMH4G7w==",
235
+      "dependencies": {
236
+        "@hapi/boom": "9.x.x",
237
+        "@hapi/bounce": "2.x.x",
238
+        "@hapi/bourne": "2.x.x",
239
+        "@hapi/cryptiles": "5.x.x",
240
+        "@hapi/hoek": "9.x.x",
241
+        "@hapi/iron": "6.x.x",
242
+        "@hapi/validate": "1.x.x"
243
+      }
244
+    },
245
+    "node_modules/@hapi/subtext": {
246
+      "version": "7.0.3",
247
+      "resolved": "https://registry.npmjs.org/@hapi/subtext/-/subtext-7.0.3.tgz",
248
+      "integrity": "sha512-CekDizZkDGERJ01C0+TzHlKtqdXZxzSWTOaH6THBrbOHnsr3GY+yiMZC+AfNCypfE17RaIakGIAbpL2Tk1z2+A==",
249
+      "dependencies": {
250
+        "@hapi/boom": "9.x.x",
251
+        "@hapi/bourne": "2.x.x",
252
+        "@hapi/content": "^5.0.2",
253
+        "@hapi/file": "2.x.x",
254
+        "@hapi/hoek": "9.x.x",
255
+        "@hapi/pez": "^5.0.1",
256
+        "@hapi/wreck": "17.x.x"
257
+      }
258
+    },
259
+    "node_modules/@hapi/teamwork": {
260
+      "version": "5.1.0",
261
+      "resolved": "https://registry.npmjs.org/@hapi/teamwork/-/teamwork-5.1.0.tgz",
262
+      "integrity": "sha512-llqoQTrAJDTXxG3c4Kz/uzhBS1TsmSBa/XG5SPcVXgmffHE1nFtyLIK0hNJHCB3EuBKT84adzd1hZNY9GJLWtg==",
263
+      "engines": {
264
+        "node": ">=12.0.0"
265
+      }
266
+    },
267
+    "node_modules/@hapi/topo": {
268
+      "version": "5.0.0",
269
+      "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.0.0.tgz",
270
+      "integrity": "sha512-tFJlT47db0kMqVm3H4nQYgn6Pwg10GTZHb1pwmSiv1K4ks6drQOtfEF5ZnPjkvC+y4/bUPHK+bc87QvLcL+WMw==",
271
+      "dependencies": {
272
+        "@hapi/hoek": "^9.0.0"
273
+      }
274
+    },
275
+    "node_modules/@hapi/validate": {
276
+      "version": "1.1.3",
277
+      "resolved": "https://registry.npmjs.org/@hapi/validate/-/validate-1.1.3.tgz",
278
+      "integrity": "sha512-/XMR0N0wjw0Twzq2pQOzPBZlDzkekGcoCtzO314BpIEsbXdYGthQUbxgkGDf4nhk1+IPDAsXqWjMohRQYO06UA==",
279
+      "dependencies": {
280
+        "@hapi/hoek": "^9.0.0",
281
+        "@hapi/topo": "^5.0.0"
282
+      }
283
+    },
284
+    "node_modules/@hapi/vise": {
285
+      "version": "4.0.0",
286
+      "resolved": "https://registry.npmjs.org/@hapi/vise/-/vise-4.0.0.tgz",
287
+      "integrity": "sha512-eYyLkuUiFZTer59h+SGy7hUm+qE9p+UemePTHLlIWppEd+wExn3Df5jO04bFQTm7nleF5V8CtuYQYb+VFpZ6Sg==",
288
+      "dependencies": {
289
+        "@hapi/hoek": "9.x.x"
290
+      }
291
+    },
292
+    "node_modules/@hapi/wreck": {
293
+      "version": "17.1.0",
294
+      "resolved": "https://registry.npmjs.org/@hapi/wreck/-/wreck-17.1.0.tgz",
295
+      "integrity": "sha512-nx6sFyfqOpJ+EFrHX+XWwJAxs3ju4iHdbB/bwR8yTNZOiYmuhA8eCe7lYPtYmb4j7vyK/SlbaQsmTtUrMvPEBw==",
296
+      "dependencies": {
297
+        "@hapi/boom": "9.x.x",
298
+        "@hapi/bourne": "2.x.x",
299
+        "@hapi/hoek": "9.x.x"
300
+      }
301
+    },
302
+    "node_modules/mime-db": {
303
+      "version": "1.47.0",
304
+      "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz",
305
+      "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw==",
306
+      "engines": {
307
+        "node": ">= 0.6"
308
+      }
309
+    }
310
+  },
311
+  "dependencies": {
312
+    "@hapi/accept": {
313
+      "version": "5.0.2",
314
+      "resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-5.0.2.tgz",
315
+      "integrity": "sha512-CmzBx/bXUR8451fnZRuZAJRlzgm0Jgu5dltTX/bszmR2lheb9BpyN47Q1RbaGTsvFzn0PXAEs+lXDKfshccYZw==",
316
+      "requires": {
317
+        "@hapi/boom": "9.x.x",
318
+        "@hapi/hoek": "9.x.x"
319
+      }
320
+    },
321
+    "@hapi/ammo": {
322
+      "version": "5.0.1",
323
+      "resolved": "https://registry.npmjs.org/@hapi/ammo/-/ammo-5.0.1.tgz",
324
+      "integrity": "sha512-FbCNwcTbnQP4VYYhLNGZmA76xb2aHg9AMPiy18NZyWMG310P5KdFGyA9v2rm5ujrIny77dEEIkMOwl0Xv+fSSA==",
325
+      "requires": {
326
+        "@hapi/hoek": "9.x.x"
327
+      }
328
+    },
329
+    "@hapi/b64": {
330
+      "version": "5.0.0",
331
+      "resolved": "https://registry.npmjs.org/@hapi/b64/-/b64-5.0.0.tgz",
332
+      "integrity": "sha512-ngu0tSEmrezoiIaNGG6rRvKOUkUuDdf4XTPnONHGYfSGRmDqPZX5oJL6HAdKTo1UQHECbdB4OzhWrfgVppjHUw==",
333
+      "requires": {
334
+        "@hapi/hoek": "9.x.x"
335
+      }
336
+    },
337
+    "@hapi/boom": {
338
+      "version": "9.1.2",
339
+      "resolved": "https://registry.npmjs.org/@hapi/boom/-/boom-9.1.2.tgz",
340
+      "integrity": "sha512-uJEJtiNHzKw80JpngDGBCGAmWjBtzxDCz17A9NO2zCi8LLBlb5Frpq4pXwyN+2JQMod4pKz5BALwyneCgDg89Q==",
341
+      "requires": {
342
+        "@hapi/hoek": "9.x.x"
343
+      }
344
+    },
345
+    "@hapi/bounce": {
346
+      "version": "2.0.0",
347
+      "resolved": "https://registry.npmjs.org/@hapi/bounce/-/bounce-2.0.0.tgz",
348
+      "integrity": "sha512-JesW92uyzOOyuzJKjoLHM1ThiOvHPOLDHw01YV8yh5nCso7sDwJho1h0Ad2N+E62bZyz46TG3xhAi/78Gsct6A==",
349
+      "requires": {
350
+        "@hapi/boom": "9.x.x",
351
+        "@hapi/hoek": "9.x.x"
352
+      }
353
+    },
354
+    "@hapi/bourne": {
355
+      "version": "2.0.0",
356
+      "resolved": "https://registry.npmjs.org/@hapi/bourne/-/bourne-2.0.0.tgz",
357
+      "integrity": "sha512-WEezM1FWztfbzqIUbsDzFRVMxSoLy3HugVcux6KDDtTqzPsLE8NDRHfXvev66aH1i2oOKKar3/XDjbvh/OUBdg=="
358
+    },
359
+    "@hapi/call": {
360
+      "version": "8.0.1",
361
+      "resolved": "https://registry.npmjs.org/@hapi/call/-/call-8.0.1.tgz",
362
+      "integrity": "sha512-bOff6GTdOnoe5b8oXRV3lwkQSb/LAWylvDMae6RgEWWntd0SHtkYbQukDHKlfaYtVnSAgIavJ0kqszF/AIBb6g==",
363
+      "requires": {
364
+        "@hapi/boom": "9.x.x",
365
+        "@hapi/hoek": "9.x.x"
366
+      }
367
+    },
368
+    "@hapi/catbox": {
369
+      "version": "11.1.1",
370
+      "resolved": "https://registry.npmjs.org/@hapi/catbox/-/catbox-11.1.1.tgz",
371
+      "integrity": "sha512-u/8HvB7dD/6X8hsZIpskSDo4yMKpHxFd7NluoylhGrL6cUfYxdQPnvUp9YU2C6F9hsyBVLGulBd9vBN1ebfXOQ==",
372
+      "requires": {
373
+        "@hapi/boom": "9.x.x",
374
+        "@hapi/hoek": "9.x.x",
375
+        "@hapi/podium": "4.x.x",
376
+        "@hapi/validate": "1.x.x"
377
+      }
378
+    },
379
+    "@hapi/catbox-memory": {
380
+      "version": "5.0.1",
381
+      "resolved": "https://registry.npmjs.org/@hapi/catbox-memory/-/catbox-memory-5.0.1.tgz",
382
+      "integrity": "sha512-QWw9nOYJq5PlvChLWV8i6hQHJYfvdqiXdvTupJFh0eqLZ64Xir7mKNi96d5/ZMUAqXPursfNDIDxjFgoEDUqeQ==",
383
+      "requires": {
384
+        "@hapi/boom": "9.x.x",
385
+        "@hapi/hoek": "9.x.x"
386
+      }
387
+    },
388
+    "@hapi/content": {
389
+      "version": "5.0.2",
390
+      "resolved": "https://registry.npmjs.org/@hapi/content/-/content-5.0.2.tgz",
391
+      "integrity": "sha512-mre4dl1ygd4ZyOH3tiYBrOUBzV7Pu/EOs8VLGf58vtOEECWed8Uuw6B4iR9AN/8uQt42tB04qpVaMyoMQh0oMw==",
392
+      "requires": {
393
+        "@hapi/boom": "9.x.x"
394
+      }
395
+    },
396
+    "@hapi/cryptiles": {
397
+      "version": "5.1.0",
398
+      "resolved": "https://registry.npmjs.org/@hapi/cryptiles/-/cryptiles-5.1.0.tgz",
399
+      "integrity": "sha512-fo9+d1Ba5/FIoMySfMqPBR/7Pa29J2RsiPrl7bkwo5W5o+AN1dAYQRi4SPrPwwVxVGKjgLOEWrsvt1BonJSfLA==",
400
+      "requires": {
401
+        "@hapi/boom": "9.x.x"
402
+      }
403
+    },
404
+    "@hapi/file": {
405
+      "version": "2.0.0",
406
+      "resolved": "https://registry.npmjs.org/@hapi/file/-/file-2.0.0.tgz",
407
+      "integrity": "sha512-WSrlgpvEqgPWkI18kkGELEZfXr0bYLtr16iIN4Krh9sRnzBZN6nnWxHFxtsnP684wueEySBbXPDg/WfA9xJdBQ=="
408
+    },
409
+    "@hapi/hapi": {
410
+      "version": "20.1.3",
411
+      "resolved": "https://registry.npmjs.org/@hapi/hapi/-/hapi-20.1.3.tgz",
412
+      "integrity": "sha512-ImOkrixD1kPUuvmSklwytPQ0sG8AtqydwU0JzvITLE6Z7wPMVf9i9LIMWywKPxHTNhCZ6W3oKP9yRjqM/IkHMQ==",
413
+      "requires": {
414
+        "@hapi/accept": "^5.0.1",
415
+        "@hapi/ammo": "^5.0.1",
416
+        "@hapi/boom": "^9.1.0",
417
+        "@hapi/bounce": "^2.0.0",
418
+        "@hapi/call": "^8.0.0",
419
+        "@hapi/catbox": "^11.1.1",
420
+        "@hapi/catbox-memory": "^5.0.0",
421
+        "@hapi/heavy": "^7.0.1",
422
+        "@hapi/hoek": "^9.0.4",
423
+        "@hapi/mimos": "^6.0.0",
424
+        "@hapi/podium": "^4.1.1",
425
+        "@hapi/shot": "^5.0.5",
426
+        "@hapi/somever": "^3.0.0",
427
+        "@hapi/statehood": "^7.0.3",
428
+        "@hapi/subtext": "^7.0.3",
429
+        "@hapi/teamwork": "^5.1.0",
430
+        "@hapi/topo": "^5.0.0",
431
+        "@hapi/validate": "^1.1.1"
432
+      }
433
+    },
434
+    "@hapi/heavy": {
435
+      "version": "7.0.1",
436
+      "resolved": "https://registry.npmjs.org/@hapi/heavy/-/heavy-7.0.1.tgz",
437
+      "integrity": "sha512-vJ/vzRQ13MtRzz6Qd4zRHWS3FaUc/5uivV2TIuExGTM9Qk+7Zzqj0e2G7EpE6KztO9SalTbiIkTh7qFKj/33cA==",
438
+      "requires": {
439
+        "@hapi/boom": "9.x.x",
440
+        "@hapi/hoek": "9.x.x",
441
+        "@hapi/validate": "1.x.x"
442
+      }
443
+    },
444
+    "@hapi/hoek": {
445
+      "version": "9.2.0",
446
+      "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.0.tgz",
447
+      "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug=="
448
+    },
449
+    "@hapi/iron": {
450
+      "version": "6.0.0",
451
+      "resolved": "https://registry.npmjs.org/@hapi/iron/-/iron-6.0.0.tgz",
452
+      "integrity": "sha512-zvGvWDufiTGpTJPG1Y/McN8UqWBu0k/xs/7l++HVU535NLHXsHhy54cfEMdW7EjwKfbBfM9Xy25FmTiobb7Hvw==",
453
+      "requires": {
454
+        "@hapi/b64": "5.x.x",
455
+        "@hapi/boom": "9.x.x",
456
+        "@hapi/bourne": "2.x.x",
457
+        "@hapi/cryptiles": "5.x.x",
458
+        "@hapi/hoek": "9.x.x"
459
+      }
460
+    },
461
+    "@hapi/mimos": {
462
+      "version": "6.0.0",
463
+      "resolved": "https://registry.npmjs.org/@hapi/mimos/-/mimos-6.0.0.tgz",
464
+      "integrity": "sha512-Op/67tr1I+JafN3R3XN5DucVSxKRT/Tc+tUszDwENoNpolxeXkhrJ2Czt6B6AAqrespHoivhgZBWYSuANN9QXg==",
465
+      "requires": {
466
+        "@hapi/hoek": "9.x.x",
467
+        "mime-db": "1.x.x"
468
+      }
469
+    },
470
+    "@hapi/nigel": {
471
+      "version": "4.0.2",
472
+      "resolved": "https://registry.npmjs.org/@hapi/nigel/-/nigel-4.0.2.tgz",
473
+      "integrity": "sha512-ht2KoEsDW22BxQOEkLEJaqfpoKPXxi7tvabXy7B/77eFtOyG5ZEstfZwxHQcqAiZhp58Ae5vkhEqI03kawkYNw==",
474
+      "requires": {
475
+        "@hapi/hoek": "^9.0.4",
476
+        "@hapi/vise": "^4.0.0"
477
+      }
478
+    },
479
+    "@hapi/pez": {
480
+      "version": "5.0.3",
481
+      "resolved": "https://registry.npmjs.org/@hapi/pez/-/pez-5.0.3.tgz",
482
+      "integrity": "sha512-mpikYRJjtrbJgdDHG/H9ySqYqwJ+QU/D7FXsYciS9P7NYBXE2ayKDAy3H0ou6CohOCaxPuTV4SZ0D936+VomHA==",
483
+      "requires": {
484
+        "@hapi/b64": "5.x.x",
485
+        "@hapi/boom": "9.x.x",
486
+        "@hapi/content": "^5.0.2",
487
+        "@hapi/hoek": "9.x.x",
488
+        "@hapi/nigel": "4.x.x"
489
+      }
490
+    },
491
+    "@hapi/podium": {
492
+      "version": "4.1.3",
493
+      "resolved": "https://registry.npmjs.org/@hapi/podium/-/podium-4.1.3.tgz",
494
+      "integrity": "sha512-ljsKGQzLkFqnQxE7qeanvgGj4dejnciErYd30dbrYzUOF/FyS/DOF97qcrT3bhoVwCYmxa6PEMhxfCPlnUcD2g==",
495
+      "requires": {
496
+        "@hapi/hoek": "9.x.x",
497
+        "@hapi/teamwork": "5.x.x",
498
+        "@hapi/validate": "1.x.x"
499
+      }
500
+    },
501
+    "@hapi/shot": {
502
+      "version": "5.0.5",
503
+      "resolved": "https://registry.npmjs.org/@hapi/shot/-/shot-5.0.5.tgz",
504
+      "integrity": "sha512-x5AMSZ5+j+Paa8KdfCoKh+klB78otxF+vcJR/IoN91Vo2e5ulXIW6HUsFTCU+4W6P/Etaip9nmdAx2zWDimB2A==",
505
+      "requires": {
506
+        "@hapi/hoek": "9.x.x",
507
+        "@hapi/validate": "1.x.x"
508
+      }
509
+    },
510
+    "@hapi/somever": {
511
+      "version": "3.0.1",
512
+      "resolved": "https://registry.npmjs.org/@hapi/somever/-/somever-3.0.1.tgz",
513
+      "integrity": "sha512-4ZTSN3YAHtgpY/M4GOtHUXgi6uZtG9nEZfNI6QrArhK0XN/RDVgijlb9kOmXwCR5VclDSkBul9FBvhSuKXx9+w==",
514
+      "requires": {
515
+        "@hapi/bounce": "2.x.x",
516
+        "@hapi/hoek": "9.x.x"
517
+      }
518
+    },
519
+    "@hapi/statehood": {
520
+      "version": "7.0.3",
521
+      "resolved": "https://registry.npmjs.org/@hapi/statehood/-/statehood-7.0.3.tgz",
522
+      "integrity": "sha512-pYB+pyCHkf2Amh67QAXz7e/DN9jcMplIL7Z6N8h0K+ZTy0b404JKPEYkbWHSnDtxLjJB/OtgElxocr2fMH4G7w==",
523
+      "requires": {
524
+        "@hapi/boom": "9.x.x",
525
+        "@hapi/bounce": "2.x.x",
526
+        "@hapi/bourne": "2.x.x",
527
+        "@hapi/cryptiles": "5.x.x",
528
+        "@hapi/hoek": "9.x.x",
529
+        "@hapi/iron": "6.x.x",
530
+        "@hapi/validate": "1.x.x"
531
+      }
532
+    },
533
+    "@hapi/subtext": {
534
+      "version": "7.0.3",
535
+      "resolved": "https://registry.npmjs.org/@hapi/subtext/-/subtext-7.0.3.tgz",
536
+      "integrity": "sha512-CekDizZkDGERJ01C0+TzHlKtqdXZxzSWTOaH6THBrbOHnsr3GY+yiMZC+AfNCypfE17RaIakGIAbpL2Tk1z2+A==",
537
+      "requires": {
538
+        "@hapi/boom": "9.x.x",
539
+        "@hapi/bourne": "2.x.x",
540
+        "@hapi/content": "^5.0.2",
541
+        "@hapi/file": "2.x.x",
542
+        "@hapi/hoek": "9.x.x",
543
+        "@hapi/pez": "^5.0.1",
544
+        "@hapi/wreck": "17.x.x"
545
+      }
546
+    },
547
+    "@hapi/teamwork": {
548
+      "version": "5.1.0",
549
+      "resolved": "https://registry.npmjs.org/@hapi/teamwork/-/teamwork-5.1.0.tgz",
550
+      "integrity": "sha512-llqoQTrAJDTXxG3c4Kz/uzhBS1TsmSBa/XG5SPcVXgmffHE1nFtyLIK0hNJHCB3EuBKT84adzd1hZNY9GJLWtg=="
551
+    },
552
+    "@hapi/topo": {
553
+      "version": "5.0.0",
554
+      "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.0.0.tgz",
555
+      "integrity": "sha512-tFJlT47db0kMqVm3H4nQYgn6Pwg10GTZHb1pwmSiv1K4ks6drQOtfEF5ZnPjkvC+y4/bUPHK+bc87QvLcL+WMw==",
556
+      "requires": {
557
+        "@hapi/hoek": "^9.0.0"
558
+      }
559
+    },
560
+    "@hapi/validate": {
561
+      "version": "1.1.3",
562
+      "resolved": "https://registry.npmjs.org/@hapi/validate/-/validate-1.1.3.tgz",
563
+      "integrity": "sha512-/XMR0N0wjw0Twzq2pQOzPBZlDzkekGcoCtzO314BpIEsbXdYGthQUbxgkGDf4nhk1+IPDAsXqWjMohRQYO06UA==",
564
+      "requires": {
565
+        "@hapi/hoek": "^9.0.0",
566
+        "@hapi/topo": "^5.0.0"
567
+      }
568
+    },
569
+    "@hapi/vise": {
570
+      "version": "4.0.0",
571
+      "resolved": "https://registry.npmjs.org/@hapi/vise/-/vise-4.0.0.tgz",
572
+      "integrity": "sha512-eYyLkuUiFZTer59h+SGy7hUm+qE9p+UemePTHLlIWppEd+wExn3Df5jO04bFQTm7nleF5V8CtuYQYb+VFpZ6Sg==",
573
+      "requires": {
574
+        "@hapi/hoek": "9.x.x"
575
+      }
576
+    },
577
+    "@hapi/wreck": {
578
+      "version": "17.1.0",
579
+      "resolved": "https://registry.npmjs.org/@hapi/wreck/-/wreck-17.1.0.tgz",
580
+      "integrity": "sha512-nx6sFyfqOpJ+EFrHX+XWwJAxs3ju4iHdbB/bwR8yTNZOiYmuhA8eCe7lYPtYmb4j7vyK/SlbaQsmTtUrMvPEBw==",
581
+      "requires": {
582
+        "@hapi/boom": "9.x.x",
583
+        "@hapi/bourne": "2.x.x",
584
+        "@hapi/hoek": "9.x.x"
585
+      }
586
+    },
587
+    "mime-db": {
588
+      "version": "1.47.0",
589
+      "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz",
590
+      "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw=="
591
+    }
592
+  }
593
+}

+ 14
- 0
backend/package.json Ver fichero

@@ -0,0 +1,14 @@
1
+{
2
+  "name": "siimee-backend",
3
+  "version": "1.0.0",
4
+  "description": "",
5
+  "main": "index.js",
6
+  "scripts": {
7
+    "test": "echo \"Error: no test specified\" && exit 1"
8
+  },
9
+  "author": "TOJ",
10
+  "license": "UNLICENSED",
11
+  "dependencies": {
12
+    "@hapi/hapi": "^20.1.3"
13
+  }
14
+}

+ 0
- 0
frontend/README.md Ver fichero


index.html → frontend/index.html Ver fichero


package-lock.json → frontend/package-lock.json Ver fichero


package.json → frontend/package.json Ver fichero


postcss.config.js → frontend/postcss.config.js Ver fichero


src/App.vue → frontend/src/App.vue Ver fichero


src/assets/logo.png → frontend/src/assets/logo.png Ver fichero


src/components/HelloWorld.vue → frontend/src/components/HelloWorld.vue Ver fichero


src/components/card.vue → frontend/src/components/card.vue Ver fichero


src/entities/_modules.js → frontend/src/entities/_modules.js Ver fichero


src/entities/index.js → frontend/src/entities/index.js Ver fichero


src/entities/profile/index.js → frontend/src/entities/profile/index.js Ver fichero


src/entities/profile/profile.js → frontend/src/entities/profile/profile.js Ver fichero


src/entities/profile/profile.schema.js → frontend/src/entities/profile/profile.schema.js Ver fichero


src/entities/profile/profile.spec.js → frontend/src/entities/profile/profile.spec.js Ver fichero


src/main.js → frontend/src/main.js Ver fichero


src/sss/_variables.sss → frontend/src/sss/_variables.sss Ver fichero


src/sss/import.css → frontend/src/sss/import.css Ver fichero


src/sss/partials/_helpers.sss → frontend/src/sss/partials/_helpers.sss Ver fichero


src/sss/partials/_ratios.sss → frontend/src/sss/partials/_ratios.sss Ver fichero


src/sss/partials/_reset.sss → frontend/src/sss/partials/_reset.sss Ver fichero


src/sss/partials/_typography.sss → frontend/src/sss/partials/_typography.sss Ver fichero


src/sss/theme.sss → frontend/src/sss/theme.sss Ver fichero


src/utils/db.js → frontend/src/utils/db.js Ver fichero


src/utils/index.js → frontend/src/utils/index.js Ver fichero


vite.config.js → frontend/vite.config.js Ver fichero


Loading…
Cancelar
Guardar