Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정승호
/
Hexa_for_you_renewal
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
정승호
2020-05-21 22:50:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b35c0007883eb7daf3171850fb05e84043b8e056
b35c0007
1 parent
9d3d9dec
all file uploaded
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
.gitignore
index.js
package-lock.json
package.json
.gitignore
0 → 100644
View file @
b35c000
node_modules
\ No newline at end of file
index.js
View file @
b35c000
const
express
=
require
(
'express'
)
const
app
=
express
()
const
port
=
5000
const
mongoose
=
require
(
'mongoose'
)
mongoose
.
connect
(
'mongodb+srv://platoon07:wony9795!!@2020oss-ysxss.mongodb.net/test?retryWrites=true&w=majority'
,{
useNewUrlParser
:
true
,
useUnifiedTopology
:
true
,
useCreateIndex
:
true
,
useFindAndModify
:
false
}).
then
(()
=>
console
.
log
(
'MongoDb connected....'
))
.
catch
(
err
=>
console
.
log
(
'Error'
))
app
.
get
(
'/'
,
(
req
,
res
)
=>
res
.
send
(
'Hello world!!'
))
app
.
listen
(
port
,
()
=>
console
.
log
(
'example app listen on port ${port} !'
))
// mongodb+srv://platoon07:<password>@2020oss-ysxss.mongodb.net/test?retryWrites=true&w=majority
\ No newline at end of file
...
...
package-lock.json
View file @
b35c000
This diff is collapsed. Click to expand it.
package.json
View file @
b35c000
...
...
@@ -4,7 +4,7 @@
"description"
:
">20151039045 정승호"
,
"main"
:
"index.js"
,
"scripts"
:
{
"start"
:
"node index.js"
,
"start"
:
"node index.js"
,
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
"repository"
:
{
...
...
@@ -14,6 +14,7 @@
"author"
:
"seungho"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"express"
:
"^4.17.1"
"express"
:
"^4.17.1"
,
"mongoose"
:
"^5.9.15"
}
}
...
...
Please
register
or
login
to post a comment