임태민

Update app.js

- Add ejs
...@@ -3,6 +3,12 @@ const bodyParser = require('body-parser'); ...@@ -3,6 +3,12 @@ const bodyParser = require('body-parser');
3 const session = require('express-session'); 3 const session = require('express-session');
4 const app = express(); 4 const app = express();
5 5
6 +app.set('views', __dirname + '/views');
7 +app.set('view engine', 'ejs');
8 +app.engine('html', require('ejs').renderFile);
9 +app.use(express.static('public'));
10 +
11 +
6 app.use(bodyParser.json()); 12 app.use(bodyParser.json());
7 13
8 app.use(session({ 14 app.use(session({
...@@ -14,7 +20,7 @@ app.use(session({ ...@@ -14,7 +20,7 @@ app.use(session({
14 20
15 //Home 21 //Home
16 app.get('/', function(req,res){ 22 app.get('/', function(req,res){
17 - res.send("Home page"); 23 + res.render("index.html");
18 }) 24 })
19 25
20 //login 26 //login
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
9 "license": "ISC", 9 "license": "ISC",
10 "dependencies": { 10 "dependencies": {
11 "body-parser": "^1.19.0", 11 "body-parser": "^1.19.0",
12 + "ejs": "^3.1.6",
12 "express": "^4.17.1", 13 "express": "^4.17.1",
13 "express-session": "^1.17.1", 14 "express-session": "^1.17.1",
14 "mysql": "^2.18.1", 15 "mysql": "^2.18.1",
...@@ -35,11 +36,32 @@ ...@@ -35,11 +36,32 @@
35 "node": ">= 0.6" 36 "node": ">= 0.6"
36 } 37 }
37 }, 38 },
39 + "node_modules/ansi-styles": {
40 + "version": "3.2.1",
41 + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
42 + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
43 + "dependencies": {
44 + "color-convert": "^1.9.0"
45 + },
46 + "engines": {
47 + "node": ">=4"
48 + }
49 + },
38 "node_modules/array-flatten": { 50 "node_modules/array-flatten": {
39 "version": "1.1.1", 51 "version": "1.1.1",
40 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 52 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
41 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 53 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
42 }, 54 },
55 + "node_modules/async": {
56 + "version": "0.9.2",
57 + "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz",
58 + "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0="
59 + },
60 + "node_modules/balanced-match": {
61 + "version": "1.0.2",
62 + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
63 + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
64 + },
43 "node_modules/bignumber.js": { 65 "node_modules/bignumber.js": {
44 "version": "9.0.0", 66 "version": "9.0.0",
45 "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz", 67 "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz",
...@@ -68,6 +90,15 @@ ...@@ -68,6 +90,15 @@
68 "node": ">= 0.8" 90 "node": ">= 0.8"
69 } 91 }
70 }, 92 },
93 + "node_modules/brace-expansion": {
94 + "version": "1.1.11",
95 + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
96 + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
97 + "dependencies": {
98 + "balanced-match": "^1.0.0",
99 + "concat-map": "0.0.1"
100 + }
101 + },
71 "node_modules/bytes": { 102 "node_modules/bytes": {
72 "version": "3.1.0", 103 "version": "3.1.0",
73 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 104 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
...@@ -84,6 +115,37 @@ ...@@ -84,6 +115,37 @@
84 "node": ">=0.10.0" 115 "node": ">=0.10.0"
85 } 116 }
86 }, 117 },
118 + "node_modules/chalk": {
119 + "version": "2.4.2",
120 + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
121 + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
122 + "dependencies": {
123 + "ansi-styles": "^3.2.1",
124 + "escape-string-regexp": "^1.0.5",
125 + "supports-color": "^5.3.0"
126 + },
127 + "engines": {
128 + "node": ">=4"
129 + }
130 + },
131 + "node_modules/color-convert": {
132 + "version": "1.9.3",
133 + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
134 + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
135 + "dependencies": {
136 + "color-name": "1.1.3"
137 + }
138 + },
139 + "node_modules/color-name": {
140 + "version": "1.1.3",
141 + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
142 + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
143 + },
144 + "node_modules/concat-map": {
145 + "version": "0.0.1",
146 + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
147 + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
148 + },
87 "node_modules/content-disposition": { 149 "node_modules/content-disposition": {
88 "version": "0.5.3", 150 "version": "0.5.3",
89 "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 151 "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
...@@ -182,6 +244,20 @@ ...@@ -182,6 +244,20 @@
182 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 244 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
183 "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 245 "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
184 }, 246 },
247 + "node_modules/ejs": {
248 + "version": "3.1.6",
249 + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz",
250 + "integrity": "sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==",
251 + "dependencies": {
252 + "jake": "^10.6.1"
253 + },
254 + "bin": {
255 + "ejs": "bin/cli.js"
256 + },
257 + "engines": {
258 + "node": ">=0.10.0"
259 + }
260 + },
185 "node_modules/encodeurl": { 261 "node_modules/encodeurl": {
186 "version": "1.0.2", 262 "version": "1.0.2",
187 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 263 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
...@@ -211,6 +287,14 @@ ...@@ -211,6 +287,14 @@
211 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 287 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
212 "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 288 "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
213 }, 289 },
290 + "node_modules/escape-string-regexp": {
291 + "version": "1.0.5",
292 + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
293 + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
294 + "engines": {
295 + "node": ">=0.8.0"
296 + }
297 + },
214 "node_modules/etag": { 298 "node_modules/etag": {
215 "version": "1.8.1", 299 "version": "1.8.1",
216 "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 300 "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
...@@ -299,6 +383,14 @@ ...@@ -299,6 +383,14 @@
299 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", 383 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz",
300 "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" 384 "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg=="
301 }, 385 },
386 + "node_modules/filelist": {
387 + "version": "1.0.2",
388 + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz",
389 + "integrity": "sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==",
390 + "dependencies": {
391 + "minimatch": "^3.0.4"
392 + }
393 + },
302 "node_modules/finalhandler": { 394 "node_modules/finalhandler": {
303 "version": "1.1.2", 395 "version": "1.1.2",
304 "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 396 "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
...@@ -434,6 +526,14 @@ ...@@ -434,6 +526,14 @@
434 "node": ">= 0.4.0" 526 "node": ">= 0.4.0"
435 } 527 }
436 }, 528 },
529 + "node_modules/has-flag": {
530 + "version": "3.0.0",
531 + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
532 + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
533 + "engines": {
534 + "node": ">=4"
535 + }
536 + },
437 "node_modules/hosted-git-info": { 537 "node_modules/hosted-git-info": {
438 "version": "2.8.9", 538 "version": "2.8.9",
439 "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", 539 "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
...@@ -549,6 +649,23 @@ ...@@ -549,6 +649,23 @@
549 "resolved": "https://registry.npmjs.org/iterate-object/-/iterate-object-1.3.4.tgz", 649 "resolved": "https://registry.npmjs.org/iterate-object/-/iterate-object-1.3.4.tgz",
550 "integrity": "sha512-4dG1D1x/7g8PwHS9aK6QV5V94+ZvyP4+d19qDv43EzImmrndysIl4prmJ1hWWIGCqrZHyaHBm6BSEWHOLnpoNw==" 650 "integrity": "sha512-4dG1D1x/7g8PwHS9aK6QV5V94+ZvyP4+d19qDv43EzImmrndysIl4prmJ1hWWIGCqrZHyaHBm6BSEWHOLnpoNw=="
551 }, 651 },
652 + "node_modules/jake": {
653 + "version": "10.8.2",
654 + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz",
655 + "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==",
656 + "dependencies": {
657 + "async": "0.9.x",
658 + "chalk": "^2.4.2",
659 + "filelist": "^1.0.1",
660 + "minimatch": "^3.0.4"
661 + },
662 + "bin": {
663 + "jake": "bin/cli.js"
664 + },
665 + "engines": {
666 + "node": "*"
667 + }
668 + },
552 "node_modules/limit-it": { 669 "node_modules/limit-it": {
553 "version": "3.2.10", 670 "version": "3.2.10",
554 "resolved": "https://registry.npmjs.org/limit-it/-/limit-it-3.2.10.tgz", 671 "resolved": "https://registry.npmjs.org/limit-it/-/limit-it-3.2.10.tgz",
...@@ -616,6 +733,17 @@ ...@@ -616,6 +733,17 @@
616 "node": ">= 0.6" 733 "node": ">= 0.6"
617 } 734 }
618 }, 735 },
736 + "node_modules/minimatch": {
737 + "version": "3.0.4",
738 + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
739 + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
740 + "dependencies": {
741 + "brace-expansion": "^1.1.7"
742 + },
743 + "engines": {
744 + "node": "*"
745 + }
746 + },
619 "node_modules/minimist": { 747 "node_modules/minimist": {
620 "version": "1.2.5", 748 "version": "1.2.5",
621 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 749 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
...@@ -1107,6 +1235,17 @@ ...@@ -1107,6 +1235,17 @@
1107 "node": ">=0.10.0" 1235 "node": ">=0.10.0"
1108 } 1236 }
1109 }, 1237 },
1238 + "node_modules/supports-color": {
1239 + "version": "5.5.0",
1240 + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
1241 + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
1242 + "dependencies": {
1243 + "has-flag": "^3.0.0"
1244 + },
1245 + "engines": {
1246 + "node": ">=4"
1247 + }
1248 + },
1110 "node_modules/timed-out": { 1249 "node_modules/timed-out": {
1111 "version": "2.0.0", 1250 "version": "2.0.0",
1112 "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-2.0.0.tgz", 1251 "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-2.0.0.tgz",
...@@ -1250,11 +1389,29 @@ ...@@ -1250,11 +1389,29 @@
1250 "negotiator": "0.6.2" 1389 "negotiator": "0.6.2"
1251 } 1390 }
1252 }, 1391 },
1392 + "ansi-styles": {
1393 + "version": "3.2.1",
1394 + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
1395 + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
1396 + "requires": {
1397 + "color-convert": "^1.9.0"
1398 + }
1399 + },
1253 "array-flatten": { 1400 "array-flatten": {
1254 "version": "1.1.1", 1401 "version": "1.1.1",
1255 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 1402 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
1256 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 1403 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
1257 }, 1404 },
1405 + "async": {
1406 + "version": "0.9.2",
1407 + "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz",
1408 + "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0="
1409 + },
1410 + "balanced-match": {
1411 + "version": "1.0.2",
1412 + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
1413 + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
1414 + },
1258 "bignumber.js": { 1415 "bignumber.js": {
1259 "version": "9.0.0", 1416 "version": "9.0.0",
1260 "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz", 1417 "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz",
...@@ -1277,6 +1434,15 @@ ...@@ -1277,6 +1434,15 @@
1277 "type-is": "~1.6.17" 1434 "type-is": "~1.6.17"
1278 } 1435 }
1279 }, 1436 },
1437 + "brace-expansion": {
1438 + "version": "1.1.11",
1439 + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
1440 + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
1441 + "requires": {
1442 + "balanced-match": "^1.0.0",
1443 + "concat-map": "0.0.1"
1444 + }
1445 + },
1280 "bytes": { 1446 "bytes": {
1281 "version": "3.1.0", 1447 "version": "3.1.0",
1282 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 1448 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
...@@ -1287,6 +1453,34 @@ ...@@ -1287,6 +1453,34 @@
1287 "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", 1453 "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz",
1288 "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==" 1454 "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw=="
1289 }, 1455 },
1456 + "chalk": {
1457 + "version": "2.4.2",
1458 + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
1459 + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
1460 + "requires": {
1461 + "ansi-styles": "^3.2.1",
1462 + "escape-string-regexp": "^1.0.5",
1463 + "supports-color": "^5.3.0"
1464 + }
1465 + },
1466 + "color-convert": {
1467 + "version": "1.9.3",
1468 + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
1469 + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
1470 + "requires": {
1471 + "color-name": "1.1.3"
1472 + }
1473 + },
1474 + "color-name": {
1475 + "version": "1.1.3",
1476 + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
1477 + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
1478 + },
1479 + "concat-map": {
1480 + "version": "0.0.1",
1481 + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
1482 + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
1483 + },
1290 "content-disposition": { 1484 "content-disposition": {
1291 "version": "0.5.3", 1485 "version": "0.5.3",
1292 "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 1486 "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
...@@ -1367,6 +1561,14 @@ ...@@ -1367,6 +1561,14 @@
1367 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 1561 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
1368 "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 1562 "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
1369 }, 1563 },
1564 + "ejs": {
1565 + "version": "3.1.6",
1566 + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz",
1567 + "integrity": "sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==",
1568 + "requires": {
1569 + "jake": "^10.6.1"
1570 + }
1571 + },
1370 "encodeurl": { 1572 "encodeurl": {
1371 "version": "1.0.2", 1573 "version": "1.0.2",
1372 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 1574 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
...@@ -1393,6 +1595,11 @@ ...@@ -1393,6 +1595,11 @@
1393 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 1595 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
1394 "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 1596 "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
1395 }, 1597 },
1598 + "escape-string-regexp": {
1599 + "version": "1.0.5",
1600 + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
1601 + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
1602 + },
1396 "etag": { 1603 "etag": {
1397 "version": "1.8.1", 1604 "version": "1.8.1",
1398 "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 1605 "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
...@@ -1471,6 +1678,14 @@ ...@@ -1471,6 +1678,14 @@
1471 } 1678 }
1472 } 1679 }
1473 }, 1680 },
1681 + "filelist": {
1682 + "version": "1.0.2",
1683 + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz",
1684 + "integrity": "sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==",
1685 + "requires": {
1686 + "minimatch": "^3.0.4"
1687 + }
1688 + },
1474 "finalhandler": { 1689 "finalhandler": {
1475 "version": "1.1.2", 1690 "version": "1.1.2",
1476 "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 1691 "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
...@@ -1591,6 +1806,11 @@ ...@@ -1591,6 +1806,11 @@
1591 "function-bind": "^1.1.1" 1806 "function-bind": "^1.1.1"
1592 } 1807 }
1593 }, 1808 },
1809 + "has-flag": {
1810 + "version": "3.0.0",
1811 + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
1812 + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
1813 + },
1594 "hosted-git-info": { 1814 "hosted-git-info": {
1595 "version": "2.8.9", 1815 "version": "2.8.9",
1596 "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", 1816 "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
...@@ -1682,6 +1902,17 @@ ...@@ -1682,6 +1902,17 @@
1682 "resolved": "https://registry.npmjs.org/iterate-object/-/iterate-object-1.3.4.tgz", 1902 "resolved": "https://registry.npmjs.org/iterate-object/-/iterate-object-1.3.4.tgz",
1683 "integrity": "sha512-4dG1D1x/7g8PwHS9aK6QV5V94+ZvyP4+d19qDv43EzImmrndysIl4prmJ1hWWIGCqrZHyaHBm6BSEWHOLnpoNw==" 1903 "integrity": "sha512-4dG1D1x/7g8PwHS9aK6QV5V94+ZvyP4+d19qDv43EzImmrndysIl4prmJ1hWWIGCqrZHyaHBm6BSEWHOLnpoNw=="
1684 }, 1904 },
1905 + "jake": {
1906 + "version": "10.8.2",
1907 + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz",
1908 + "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==",
1909 + "requires": {
1910 + "async": "0.9.x",
1911 + "chalk": "^2.4.2",
1912 + "filelist": "^1.0.1",
1913 + "minimatch": "^3.0.4"
1914 + }
1915 + },
1685 "limit-it": { 1916 "limit-it": {
1686 "version": "3.2.10", 1917 "version": "3.2.10",
1687 "resolved": "https://registry.npmjs.org/limit-it/-/limit-it-3.2.10.tgz", 1918 "resolved": "https://registry.npmjs.org/limit-it/-/limit-it-3.2.10.tgz",
...@@ -1728,6 +1959,14 @@ ...@@ -1728,6 +1959,14 @@
1728 "mime-db": "1.47.0" 1959 "mime-db": "1.47.0"
1729 } 1960 }
1730 }, 1961 },
1962 + "minimatch": {
1963 + "version": "3.0.4",
1964 + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
1965 + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
1966 + "requires": {
1967 + "brace-expansion": "^1.1.7"
1968 + }
1969 + },
1731 "minimist": { 1970 "minimist": {
1732 "version": "1.2.5", 1971 "version": "1.2.5",
1733 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1972 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
...@@ -2136,6 +2375,14 @@ ...@@ -2136,6 +2375,14 @@
2136 "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2375 "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
2137 "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 2376 "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo="
2138 }, 2377 },
2378 + "supports-color": {
2379 + "version": "5.5.0",
2380 + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
2381 + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
2382 + "requires": {
2383 + "has-flag": "^3.0.0"
2384 + }
2385 + },
2139 "timed-out": { 2386 "timed-out": {
2140 "version": "2.0.0", 2387 "version": "2.0.0",
2141 "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-2.0.0.tgz", 2388 "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-2.0.0.tgz",
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
10 "license": "ISC", 10 "license": "ISC",
11 "dependencies": { 11 "dependencies": {
12 "body-parser": "^1.19.0", 12 "body-parser": "^1.19.0",
13 + "ejs": "^3.1.6",
13 "express": "^4.17.1", 14 "express": "^4.17.1",
14 "express-session": "^1.17.1", 15 "express-session": "^1.17.1",
15 "mysql": "^2.18.1", 16 "mysql": "^2.18.1",
......