YujeLee

html 커밋 오류 수정

1 const express = require('express'); 1 const express = require('express');
2 const fs = require('fs'); 2 const fs = require('fs');
3 const path = require('path'); 3 const path = require('path');
4 +const logger = require('morgan');
4 const app = express(); 5 const app = express();
5 6
7 +
8 +app.use(logger('combined'));
9 +
6 //디폴트 포트 값 : 8000 10 //디폴트 포트 값 : 8000
7 app.set('port', process.env.PORT || 8000); 11 app.set('port', process.env.PORT || 8000);
8 12
13 +//get하는 방법 : sendfile(파일 디렉토리 ) : 개선 필요 -> html 페이지 이동 및 data 전달 방법 찾기
9 app.get('/', (req, res) => { 14 app.get('/', (req, res) => {
10 - //res.send('Server is working'); 15 + res.sendFile(path.join(__dirname, './public/html/main.html'))
16 +});
17 +app.get('/plan', (req, res) => {
18 + res.send('Server is working');
11 res.sendFile(path.join(__dirname, './public/html/main.html')); 19 res.sendFile(path.join(__dirname, './public/html/main.html'));
12 - console.log(app.get('port'), '번 포트 대기 중'); 20 + //console.log(app.get('port'), '번 포트 대기 중');
13 }); 21 });
14 app.get('/login', (req, res) => { 22 app.get('/login', (req, res) => {
15 - console.log('로그인 페이지 오픈 시도됨.'); 23 + // console.log('로그인 페이지 오픈 시도됨.');
16 fs.readFile('./public/html/login.html', function (err, data) { 24 fs.readFile('./public/html/login.html', function (err, data) {
17 res.writeHead(200, { 'Content-Type': 'text/html' }); 25 res.writeHead(200, { 'Content-Type': 'text/html' });
18 res.end(data); 26 res.end(data);
......
...@@ -3,6 +3,537 @@ ...@@ -3,6 +3,537 @@
3 "version": "1.0.0", 3 "version": "1.0.0",
4 "lockfileVersion": 1, 4 "lockfileVersion": 1,
5 "requires": true, 5 "requires": true,
6 +<<<<<<< HEAD
7 +=======
8 + "packages": {
9 + "": {
10 + "name": "culturegallery",
11 + "version": "1.0.0",
12 + "license": "MIT",
13 + "dependencies": {
14 + "express": "^4.17.1",
15 + "morgan": "^1.10.0"
16 + }
17 + },
18 + "node_modules/accepts": {
19 + "version": "1.3.7",
20 + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
21 + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
22 + "dependencies": {
23 + "mime-types": "~2.1.24",
24 + "negotiator": "0.6.2"
25 + },
26 + "engines": {
27 + "node": ">= 0.6"
28 + }
29 + },
30 + "node_modules/array-flatten": {
31 + "version": "1.1.1",
32 + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
33 + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
34 + },
35 + "node_modules/basic-auth": {
36 + "version": "2.0.1",
37 + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz",
38 + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==",
39 + "dependencies": {
40 + "safe-buffer": "5.1.2"
41 + },
42 + "engines": {
43 + "node": ">= 0.8"
44 + }
45 + },
46 + "node_modules/body-parser": {
47 + "version": "1.19.0",
48 + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
49 + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
50 + "dependencies": {
51 + "bytes": "3.1.0",
52 + "content-type": "~1.0.4",
53 + "debug": "2.6.9",
54 + "depd": "~1.1.2",
55 + "http-errors": "1.7.2",
56 + "iconv-lite": "0.4.24",
57 + "on-finished": "~2.3.0",
58 + "qs": "6.7.0",
59 + "raw-body": "2.4.0",
60 + "type-is": "~1.6.17"
61 + },
62 + "engines": {
63 + "node": ">= 0.8"
64 + }
65 + },
66 + "node_modules/bytes": {
67 + "version": "3.1.0",
68 + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
69 + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==",
70 + "engines": {
71 + "node": ">= 0.8"
72 + }
73 + },
74 + "node_modules/content-disposition": {
75 + "version": "0.5.3",
76 + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
77 + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
78 + "dependencies": {
79 + "safe-buffer": "5.1.2"
80 + },
81 + "engines": {
82 + "node": ">= 0.6"
83 + }
84 + },
85 + "node_modules/content-type": {
86 + "version": "1.0.4",
87 + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
88 + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
89 + "engines": {
90 + "node": ">= 0.6"
91 + }
92 + },
93 + "node_modules/cookie": {
94 + "version": "0.4.0",
95 + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
96 + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==",
97 + "engines": {
98 + "node": ">= 0.6"
99 + }
100 + },
101 + "node_modules/cookie-signature": {
102 + "version": "1.0.6",
103 + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
104 + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
105 + },
106 + "node_modules/debug": {
107 + "version": "2.6.9",
108 + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
109 + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
110 + "dependencies": {
111 + "ms": "2.0.0"
112 + }
113 + },
114 + "node_modules/depd": {
115 + "version": "1.1.2",
116 + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
117 + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=",
118 + "engines": {
119 + "node": ">= 0.6"
120 + }
121 + },
122 + "node_modules/destroy": {
123 + "version": "1.0.4",
124 + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
125 + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
126 + },
127 + "node_modules/ee-first": {
128 + "version": "1.1.1",
129 + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
130 + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
131 + },
132 + "node_modules/encodeurl": {
133 + "version": "1.0.2",
134 + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
135 + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",
136 + "engines": {
137 + "node": ">= 0.8"
138 + }
139 + },
140 + "node_modules/escape-html": {
141 + "version": "1.0.3",
142 + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
143 + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
144 + },
145 + "node_modules/etag": {
146 + "version": "1.8.1",
147 + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
148 + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
149 + "engines": {
150 + "node": ">= 0.6"
151 + }
152 + },
153 + "node_modules/express": {
154 + "version": "4.17.1",
155 + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz",
156 + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
157 + "dependencies": {
158 + "accepts": "~1.3.7",
159 + "array-flatten": "1.1.1",
160 + "body-parser": "1.19.0",
161 + "content-disposition": "0.5.3",
162 + "content-type": "~1.0.4",
163 + "cookie": "0.4.0",
164 + "cookie-signature": "1.0.6",
165 + "debug": "2.6.9",
166 + "depd": "~1.1.2",
167 + "encodeurl": "~1.0.2",
168 + "escape-html": "~1.0.3",
169 + "etag": "~1.8.1",
170 + "finalhandler": "~1.1.2",
171 + "fresh": "0.5.2",
172 + "merge-descriptors": "1.0.1",
173 + "methods": "~1.1.2",
174 + "on-finished": "~2.3.0",
175 + "parseurl": "~1.3.3",
176 + "path-to-regexp": "0.1.7",
177 + "proxy-addr": "~2.0.5",
178 + "qs": "6.7.0",
179 + "range-parser": "~1.2.1",
180 + "safe-buffer": "5.1.2",
181 + "send": "0.17.1",
182 + "serve-static": "1.14.1",
183 + "setprototypeof": "1.1.1",
184 + "statuses": "~1.5.0",
185 + "type-is": "~1.6.18",
186 + "utils-merge": "1.0.1",
187 + "vary": "~1.1.2"
188 + },
189 + "engines": {
190 + "node": ">= 0.10.0"
191 + }
192 + },
193 + "node_modules/finalhandler": {
194 + "version": "1.1.2",
195 + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
196 + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
197 + "dependencies": {
198 + "debug": "2.6.9",
199 + "encodeurl": "~1.0.2",
200 + "escape-html": "~1.0.3",
201 + "on-finished": "~2.3.0",
202 + "parseurl": "~1.3.3",
203 + "statuses": "~1.5.0",
204 + "unpipe": "~1.0.0"
205 + },
206 + "engines": {
207 + "node": ">= 0.8"
208 + }
209 + },
210 + "node_modules/forwarded": {
211 + "version": "0.1.2",
212 + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
213 + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=",
214 + "engines": {
215 + "node": ">= 0.6"
216 + }
217 + },
218 + "node_modules/fresh": {
219 + "version": "0.5.2",
220 + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
221 + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=",
222 + "engines": {
223 + "node": ">= 0.6"
224 + }
225 + },
226 + "node_modules/http-errors": {
227 + "version": "1.7.2",
228 + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
229 + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
230 + "dependencies": {
231 + "depd": "~1.1.2",
232 + "inherits": "2.0.3",
233 + "setprototypeof": "1.1.1",
234 + "statuses": ">= 1.5.0 < 2",
235 + "toidentifier": "1.0.0"
236 + },
237 + "engines": {
238 + "node": ">= 0.6"
239 + }
240 + },
241 + "node_modules/iconv-lite": {
242 + "version": "0.4.24",
243 + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
244 + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
245 + "dependencies": {
246 + "safer-buffer": ">= 2.1.2 < 3"
247 + },
248 + "engines": {
249 + "node": ">=0.10.0"
250 + }
251 + },
252 + "node_modules/inherits": {
253 + "version": "2.0.3",
254 + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
255 + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
256 + },
257 + "node_modules/ipaddr.js": {
258 + "version": "1.9.1",
259 + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
260 + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
261 + "engines": {
262 + "node": ">= 0.10"
263 + }
264 + },
265 + "node_modules/media-typer": {
266 + "version": "0.3.0",
267 + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
268 + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",
269 + "engines": {
270 + "node": ">= 0.6"
271 + }
272 + },
273 + "node_modules/merge-descriptors": {
274 + "version": "1.0.1",
275 + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
276 + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
277 + },
278 + "node_modules/methods": {
279 + "version": "1.1.2",
280 + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
281 + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",
282 + "engines": {
283 + "node": ">= 0.6"
284 + }
285 + },
286 + "node_modules/mime": {
287 + "version": "1.6.0",
288 + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
289 + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
290 + "bin": {
291 + "mime": "cli.js"
292 + },
293 + "engines": {
294 + "node": ">=4"
295 + }
296 + },
297 + "node_modules/mime-db": {
298 + "version": "1.44.0",
299 + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
300 + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",
301 + "engines": {
302 + "node": ">= 0.6"
303 + }
304 + },
305 + "node_modules/mime-types": {
306 + "version": "2.1.27",
307 + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
308 + "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
309 + "dependencies": {
310 + "mime-db": "1.44.0"
311 + },
312 + "engines": {
313 + "node": ">= 0.6"
314 + }
315 + },
316 + "node_modules/morgan": {
317 + "version": "1.10.0",
318 + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",
319 + "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==",
320 + "dependencies": {
321 + "basic-auth": "~2.0.1",
322 + "debug": "2.6.9",
323 + "depd": "~2.0.0",
324 + "on-finished": "~2.3.0",
325 + "on-headers": "~1.0.2"
326 + },
327 + "engines": {
328 + "node": ">= 0.8.0"
329 + }
330 + },
331 + "node_modules/morgan/node_modules/depd": {
332 + "version": "2.0.0",
333 + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
334 + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
335 + "engines": {
336 + "node": ">= 0.8"
337 + }
338 + },
339 + "node_modules/ms": {
340 + "version": "2.0.0",
341 + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
342 + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
343 + },
344 + "node_modules/negotiator": {
345 + "version": "0.6.2",
346 + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
347 + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==",
348 + "engines": {
349 + "node": ">= 0.6"
350 + }
351 + },
352 + "node_modules/on-finished": {
353 + "version": "2.3.0",
354 + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
355 + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
356 + "dependencies": {
357 + "ee-first": "1.1.1"
358 + },
359 + "engines": {
360 + "node": ">= 0.8"
361 + }
362 + },
363 + "node_modules/on-headers": {
364 + "version": "1.0.2",
365 + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
366 + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",
367 + "engines": {
368 + "node": ">= 0.8"
369 + }
370 + },
371 + "node_modules/parseurl": {
372 + "version": "1.3.3",
373 + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
374 + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
375 + "engines": {
376 + "node": ">= 0.8"
377 + }
378 + },
379 + "node_modules/path-to-regexp": {
380 + "version": "0.1.7",
381 + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
382 + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
383 + },
384 + "node_modules/proxy-addr": {
385 + "version": "2.0.6",
386 + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz",
387 + "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==",
388 + "dependencies": {
389 + "forwarded": "~0.1.2",
390 + "ipaddr.js": "1.9.1"
391 + },
392 + "engines": {
393 + "node": ">= 0.10"
394 + }
395 + },
396 + "node_modules/qs": {
397 + "version": "6.7.0",
398 + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
399 + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==",
400 + "engines": {
401 + "node": ">=0.6"
402 + }
403 + },
404 + "node_modules/range-parser": {
405 + "version": "1.2.1",
406 + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
407 + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
408 + "engines": {
409 + "node": ">= 0.6"
410 + }
411 + },
412 + "node_modules/raw-body": {
413 + "version": "2.4.0",
414 + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
415 + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
416 + "dependencies": {
417 + "bytes": "3.1.0",
418 + "http-errors": "1.7.2",
419 + "iconv-lite": "0.4.24",
420 + "unpipe": "1.0.0"
421 + },
422 + "engines": {
423 + "node": ">= 0.8"
424 + }
425 + },
426 + "node_modules/safe-buffer": {
427 + "version": "5.1.2",
428 + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
429 + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
430 + },
431 + "node_modules/safer-buffer": {
432 + "version": "2.1.2",
433 + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
434 + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
435 + },
436 + "node_modules/send": {
437 + "version": "0.17.1",
438 + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
439 + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
440 + "dependencies": {
441 + "debug": "2.6.9",
442 + "depd": "~1.1.2",
443 + "destroy": "~1.0.4",
444 + "encodeurl": "~1.0.2",
445 + "escape-html": "~1.0.3",
446 + "etag": "~1.8.1",
447 + "fresh": "0.5.2",
448 + "http-errors": "~1.7.2",
449 + "mime": "1.6.0",
450 + "ms": "2.1.1",
451 + "on-finished": "~2.3.0",
452 + "range-parser": "~1.2.1",
453 + "statuses": "~1.5.0"
454 + },
455 + "engines": {
456 + "node": ">= 0.8.0"
457 + }
458 + },
459 + "node_modules/send/node_modules/ms": {
460 + "version": "2.1.1",
461 + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
462 + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
463 + },
464 + "node_modules/serve-static": {
465 + "version": "1.14.1",
466 + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
467 + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
468 + "dependencies": {
469 + "encodeurl": "~1.0.2",
470 + "escape-html": "~1.0.3",
471 + "parseurl": "~1.3.3",
472 + "send": "0.17.1"
473 + },
474 + "engines": {
475 + "node": ">= 0.8.0"
476 + }
477 + },
478 + "node_modules/setprototypeof": {
479 + "version": "1.1.1",
480 + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
481 + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
482 + },
483 + "node_modules/statuses": {
484 + "version": "1.5.0",
485 + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
486 + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=",
487 + "engines": {
488 + "node": ">= 0.6"
489 + }
490 + },
491 + "node_modules/toidentifier": {
492 + "version": "1.0.0",
493 + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
494 + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==",
495 + "engines": {
496 + "node": ">=0.6"
497 + }
498 + },
499 + "node_modules/type-is": {
500 + "version": "1.6.18",
501 + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
502 + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
503 + "dependencies": {
504 + "media-typer": "0.3.0",
505 + "mime-types": "~2.1.24"
506 + },
507 + "engines": {
508 + "node": ">= 0.6"
509 + }
510 + },
511 + "node_modules/unpipe": {
512 + "version": "1.0.0",
513 + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
514 + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",
515 + "engines": {
516 + "node": ">= 0.8"
517 + }
518 + },
519 + "node_modules/utils-merge": {
520 + "version": "1.0.1",
521 + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
522 + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=",
523 + "engines": {
524 + "node": ">= 0.4.0"
525 + }
526 + },
527 + "node_modules/vary": {
528 + "version": "1.1.2",
529 + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
530 + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
531 + "engines": {
532 + "node": ">= 0.8"
533 + }
534 + }
535 + },
536 +>>>>>>> fce0e2c2148edbd32673b720c8123f1b3aa99538
6 "dependencies": { 537 "dependencies": {
7 "accepts": { 538 "accepts": {
8 "version": "1.3.7", 539 "version": "1.3.7",
...@@ -18,6 +549,14 @@ ...@@ -18,6 +549,14 @@
18 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 549 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
19 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 550 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
20 }, 551 },
552 + "basic-auth": {
553 + "version": "2.0.1",
554 + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz",
555 + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==",
556 + "requires": {
557 + "safe-buffer": "5.1.2"
558 + }
559 + },
21 "body-parser": { 560 "body-parser": {
22 "version": "1.19.0", 561 "version": "1.19.0",
23 "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 562 "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
...@@ -225,6 +764,25 @@ ...@@ -225,6 +764,25 @@
225 "mime-db": "1.44.0" 764 "mime-db": "1.44.0"
226 } 765 }
227 }, 766 },
767 + "morgan": {
768 + "version": "1.10.0",
769 + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",
770 + "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==",
771 + "requires": {
772 + "basic-auth": "~2.0.1",
773 + "debug": "2.6.9",
774 + "depd": "~2.0.0",
775 + "on-finished": "~2.3.0",
776 + "on-headers": "~1.0.2"
777 + },
778 + "dependencies": {
779 + "depd": {
780 + "version": "2.0.0",
781 + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
782 + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="
783 + }
784 + }
785 + },
228 "ms": { 786 "ms": {
229 "version": "2.0.0", 787 "version": "2.0.0",
230 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 788 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
...@@ -243,6 +801,11 @@ ...@@ -243,6 +801,11 @@
243 "ee-first": "1.1.1" 801 "ee-first": "1.1.1"
244 } 802 }
245 }, 803 },
804 + "on-headers": {
805 + "version": "1.0.2",
806 + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
807 + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA=="
808 + },
246 "parseurl": { 809 "parseurl": {
247 "version": "1.3.3", 810 "version": "1.3.3",
248 "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 811 "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
14 "author": "Hyoseob Song", 14 "author": "Hyoseob Song",
15 "license": "MIT", 15 "license": "MIT",
16 "dependencies": { 16 "dependencies": {
17 - "express": "^4.17.1" 17 + "express": "^4.17.1",
18 + "morgan": "^1.10.0"
18 } 19 }
19 } 20 }
......
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 -<html lang="en"> 2 +<html lang="ko">
3 3
4 <head> 4 <head>
5 <meta charset="UTF-8"> 5 <meta charset="UTF-8">
......
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 -<html lang="en"> 2 +<html lang="ko">
3 3
4 <head> 4 <head>
5 <meta charset="UTF-8"> 5 <meta charset="UTF-8">
...@@ -11,12 +11,20 @@ ...@@ -11,12 +11,20 @@
11 <strong> Culture Gallery</strong> 11 <strong> Culture Gallery</strong>
12 12
13 <h1> 13 <h1>
14 - 수정 기록 | 수정 날짜 : 2020-12-02 14 + 수정 기록 | 수정 날짜 : 2020-12-03
15 </h1> 15 </h1>
16 <div> 16 <div>
17 <h2> 17 <h2>
18 + 12/03
19 + nodejs 서버로 javascript 파일 및 webpage 이동 방법 구현하기
20 + router, content, public 으로 프로젝트 전체 구조 재분할
21 + main page design 구현 -> info, login 등으로 link 필요
22 + 카카오 API 응용 -> 위치 정보 및 공연 컨텐츠 받아서 지도에 마킹, 카카오톡으로 보내기
23 + 12/02
18 웹사이트 node에 연결 -> 디자인 구상 필요 24 웹사이트 node에 연결 -> 디자인 구상 필요
19 api database 구축 -> 카테고리별로 가공해서 받아오기 25 api database 구축 -> 카테고리별로 가공해서 받아오기
26 +
27 +
20 </h2> 28 </h2>
21 </div> 29 </div>
22 <div> 30 <div>
......