정승호

all file uploaded

1 +node_modules
...\ No newline at end of file ...\ No newline at end of file
1 +
2 +const express = require('express')
3 +const app = express()
4 +const port = 5000
5 +
6 +const mongoose = require('mongoose')
7 +mongoose.connect('mongodb+srv://platoon07:wony9795!!@2020oss-ysxss.mongodb.net/test?retryWrites=true&w=majority',{
8 + useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex : true, useFindAndModify: false
9 +}).then(() => console.log('MongoDb connected....'))
10 + .catch(err => console.log('Error'))
11 +
12 +
13 +
14 +app.get('/', (req,res) => res.send('Hello world!!'))
15 +app.listen(port, () => console.log('example app listen on port ${port} !'))
16 +
17 +
18 +// mongodb+srv://platoon07:<password>@2020oss-ysxss.mongodb.net/test?retryWrites=true&w=majority
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -18,6 +18,20 @@ ...@@ -18,6 +18,20 @@
18 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 18 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
19 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 19 "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
20 }, 20 },
21 + "bl": {
22 + "version": "2.2.0",
23 + "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.0.tgz",
24 + "integrity": "sha512-wbgvOpqopSr7uq6fJrLH8EsvYMJf9gzfo2jCsL2eTy75qXPukA4pCgHamOQkZtY5vmfVtjB+P3LNlMHW5CEZXA==",
25 + "requires": {
26 + "readable-stream": "^2.3.5",
27 + "safe-buffer": "^5.1.1"
28 + }
29 + },
30 + "bluebird": {
31 + "version": "3.5.1",
32 + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
33 + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
34 + },
21 "body-parser": { 35 "body-parser": {
22 "version": "1.19.0", 36 "version": "1.19.0",
23 "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 37 "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
...@@ -35,6 +49,11 @@ ...@@ -35,6 +49,11 @@
35 "type-is": "~1.6.17" 49 "type-is": "~1.6.17"
36 } 50 }
37 }, 51 },
52 + "bson": {
53 + "version": "1.1.4",
54 + "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.4.tgz",
55 + "integrity": "sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q=="
56 + },
38 "bytes": { 57 "bytes": {
39 "version": "3.1.0", 58 "version": "3.1.0",
40 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 59 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
...@@ -63,6 +82,11 @@ ...@@ -63,6 +82,11 @@
63 "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 82 "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
64 "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 83 "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
65 }, 84 },
85 + "core-util-is": {
86 + "version": "1.0.2",
87 + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
88 + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
89 + },
66 "debug": { 90 "debug": {
67 "version": "2.6.9", 91 "version": "2.6.9",
68 "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 92 "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
...@@ -71,6 +95,11 @@ ...@@ -71,6 +95,11 @@
71 "ms": "2.0.0" 95 "ms": "2.0.0"
72 } 96 }
73 }, 97 },
98 + "denque": {
99 + "version": "1.4.1",
100 + "resolved": "https://registry.npmjs.org/denque/-/denque-1.4.1.tgz",
101 + "integrity": "sha512-OfzPuSZKGcgr96rf1oODnfjqBFmr1DVoc/TrItj3Ohe0Ah1C5WX5Baquw/9U9KovnQ88EqmJbD66rKYUQYN1tQ=="
102 + },
74 "depd": { 103 "depd": {
75 "version": "1.1.2", 104 "version": "1.1.2",
76 "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 105 "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
...@@ -192,11 +221,27 @@ ...@@ -192,11 +221,27 @@
192 "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 221 "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
193 "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 222 "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
194 }, 223 },
224 + "isarray": {
225 + "version": "1.0.0",
226 + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
227 + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
228 + },
229 + "kareem": {
230 + "version": "2.3.1",
231 + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.1.tgz",
232 + "integrity": "sha512-l3hLhffs9zqoDe8zjmb/mAN4B8VT3L56EUvKNqLFVs9YlFA+zx7ke1DO8STAdDyYNkeSo1nKmjuvQeI12So8Xw=="
233 + },
195 "media-typer": { 234 "media-typer": {
196 "version": "0.3.0", 235 "version": "0.3.0",
197 "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 236 "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
198 "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 237 "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
199 }, 238 },
239 + "memory-pager": {
240 + "version": "1.5.0",
241 + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
242 + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
243 + "optional": true
244 + },
200 "merge-descriptors": { 245 "merge-descriptors": {
201 "version": "1.0.1", 246 "version": "1.0.1",
202 "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 247 "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
...@@ -225,6 +270,76 @@ ...@@ -225,6 +270,76 @@
225 "mime-db": "1.44.0" 270 "mime-db": "1.44.0"
226 } 271 }
227 }, 272 },
273 + "mongodb": {
274 + "version": "3.5.7",
275 + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.5.7.tgz",
276 + "integrity": "sha512-lMtleRT+vIgY/JhhTn1nyGwnSMmJkJELp+4ZbrjctrnBxuLbj6rmLuJFz8W2xUzUqWmqoyVxJLYuC58ZKpcTYQ==",
277 + "requires": {
278 + "bl": "^2.2.0",
279 + "bson": "^1.1.4",
280 + "denque": "^1.4.1",
281 + "require_optional": "^1.0.1",
282 + "safe-buffer": "^5.1.2",
283 + "saslprep": "^1.0.0"
284 + }
285 + },
286 + "mongoose": {
287 + "version": "5.9.15",
288 + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.9.15.tgz",
289 + "integrity": "sha512-dGIDqaQkAJoLl7lsRLy70mDg+VcL1IPOHr/0f23MLF45PtnM5exRdmienfyVjdrSVGgTus+1sMUKef6vSnrDZg==",
290 + "requires": {
291 + "bson": "^1.1.4",
292 + "kareem": "2.3.1",
293 + "mongodb": "3.5.7",
294 + "mongoose-legacy-pluralize": "1.0.2",
295 + "mpath": "0.7.0",
296 + "mquery": "3.2.2",
297 + "ms": "2.1.2",
298 + "regexp-clone": "1.0.0",
299 + "safe-buffer": "5.1.2",
300 + "sift": "7.0.1",
301 + "sliced": "1.0.1"
302 + },
303 + "dependencies": {
304 + "ms": {
305 + "version": "2.1.2",
306 + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
307 + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
308 + }
309 + }
310 + },
311 + "mongoose-legacy-pluralize": {
312 + "version": "1.0.2",
313 + "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz",
314 + "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ=="
315 + },
316 + "mpath": {
317 + "version": "0.7.0",
318 + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.7.0.tgz",
319 + "integrity": "sha512-Aiq04hILxhz1L+f7sjGyn7IxYzWm1zLNNXcfhDtx04kZ2Gk7uvFdgZ8ts1cWa/6d0TQmag2yR8zSGZUmp0tFNg=="
320 + },
321 + "mquery": {
322 + "version": "3.2.2",
323 + "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.2.tgz",
324 + "integrity": "sha512-XB52992COp0KP230I3qloVUbkLUxJIu328HBP2t2EsxSFtf4W1HPSOBWOXf1bqxK4Xbb66lfMJ+Bpfd9/yZE1Q==",
325 + "requires": {
326 + "bluebird": "3.5.1",
327 + "debug": "3.1.0",
328 + "regexp-clone": "^1.0.0",
329 + "safe-buffer": "5.1.2",
330 + "sliced": "1.0.1"
331 + },
332 + "dependencies": {
333 + "debug": {
334 + "version": "3.1.0",
335 + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
336 + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
337 + "requires": {
338 + "ms": "2.0.0"
339 + }
340 + }
341 + }
342 + },
228 "ms": { 343 "ms": {
229 "version": "2.0.0", 344 "version": "2.0.0",
230 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 345 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
...@@ -253,6 +368,11 @@ ...@@ -253,6 +368,11 @@
253 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 368 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
254 "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 369 "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
255 }, 370 },
371 + "process-nextick-args": {
372 + "version": "2.0.1",
373 + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
374 + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
375 + },
256 "proxy-addr": { 376 "proxy-addr": {
257 "version": "2.0.6", 377 "version": "2.0.6",
258 "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 378 "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz",
...@@ -283,6 +403,39 @@ ...@@ -283,6 +403,39 @@
283 "unpipe": "1.0.0" 403 "unpipe": "1.0.0"
284 } 404 }
285 }, 405 },
406 + "readable-stream": {
407 + "version": "2.3.7",
408 + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
409 + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
410 + "requires": {
411 + "core-util-is": "~1.0.0",
412 + "inherits": "~2.0.3",
413 + "isarray": "~1.0.0",
414 + "process-nextick-args": "~2.0.0",
415 + "safe-buffer": "~5.1.1",
416 + "string_decoder": "~1.1.1",
417 + "util-deprecate": "~1.0.1"
418 + }
419 + },
420 + "regexp-clone": {
421 + "version": "1.0.0",
422 + "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz",
423 + "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw=="
424 + },
425 + "require_optional": {
426 + "version": "1.0.1",
427 + "resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz",
428 + "integrity": "sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==",
429 + "requires": {
430 + "resolve-from": "^2.0.0",
431 + "semver": "^5.1.0"
432 + }
433 + },
434 + "resolve-from": {
435 + "version": "2.0.0",
436 + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz",
437 + "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c="
438 + },
286 "safe-buffer": { 439 "safe-buffer": {
287 "version": "5.1.2", 440 "version": "5.1.2",
288 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 441 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
...@@ -293,6 +446,20 @@ ...@@ -293,6 +446,20 @@
293 "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 446 "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
294 "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 447 "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
295 }, 448 },
449 + "saslprep": {
450 + "version": "1.0.3",
451 + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz",
452 + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==",
453 + "optional": true,
454 + "requires": {
455 + "sparse-bitfield": "^3.0.3"
456 + }
457 + },
458 + "semver": {
459 + "version": "5.7.1",
460 + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
461 + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
462 + },
296 "send": { 463 "send": {
297 "version": "0.17.1", 464 "version": "0.17.1",
298 "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 465 "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
...@@ -336,11 +503,38 @@ ...@@ -336,11 +503,38 @@
336 "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 503 "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
337 "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 504 "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
338 }, 505 },
506 + "sift": {
507 + "version": "7.0.1",
508 + "resolved": "https://registry.npmjs.org/sift/-/sift-7.0.1.tgz",
509 + "integrity": "sha512-oqD7PMJ+uO6jV9EQCl0LrRw1OwsiPsiFQR5AR30heR+4Dl7jBBbDLnNvWiak20tzZlSE1H7RB30SX/1j/YYT7g=="
510 + },
511 + "sliced": {
512 + "version": "1.0.1",
513 + "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz",
514 + "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E="
515 + },
516 + "sparse-bitfield": {
517 + "version": "3.0.3",
518 + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
519 + "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=",
520 + "optional": true,
521 + "requires": {
522 + "memory-pager": "^1.0.2"
523 + }
524 + },
339 "statuses": { 525 "statuses": {
340 "version": "1.5.0", 526 "version": "1.5.0",
341 "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 527 "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
342 "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 528 "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
343 }, 529 },
530 + "string_decoder": {
531 + "version": "1.1.1",
532 + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
533 + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
534 + "requires": {
535 + "safe-buffer": "~5.1.0"
536 + }
537 + },
344 "toidentifier": { 538 "toidentifier": {
345 "version": "1.0.0", 539 "version": "1.0.0",
346 "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 540 "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
...@@ -360,6 +554,11 @@ ...@@ -360,6 +554,11 @@
360 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 554 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
361 "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 555 "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
362 }, 556 },
557 + "util-deprecate": {
558 + "version": "1.0.2",
559 + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
560 + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
561 + },
363 "utils-merge": { 562 "utils-merge": {
364 "version": "1.0.1", 563 "version": "1.0.1",
365 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 564 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 "description": ">20151039045 정승호", 4 "description": ">20151039045 정승호",
5 "main": "index.js", 5 "main": "index.js",
6 "scripts": { 6 "scripts": {
7 - "start":"node index.js" , 7 + "start": "node index.js",
8 "test": "echo \"Error: no test specified\" && exit 1" 8 "test": "echo \"Error: no test specified\" && exit 1"
9 }, 9 },
10 "repository": { 10 "repository": {
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
14 "author": "seungho", 14 "author": "seungho",
15 "license": "ISC", 15 "license": "ISC",
16 "dependencies": { 16 "dependencies": {
17 - "express": "^4.17.1" 17 + "express": "^4.17.1",
18 + "mongoose": "^5.9.15"
18 } 19 }
19 } 20 }
......