Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
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
박권수
2021-05-06 20:25:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fd00b32ac0016d61a023b25b5413302c25d23b7c
fd00b32a
1 parent
f2394f86
refactor. db update -> db connection after db update
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
server/index.js
server/package-lock.json
server/package.json
server/index.js
View file @
fd00b32
...
...
@@ -13,14 +13,14 @@ const app = new Koa();
const
router
=
new
Router
();
updateMedicineInfo
.
updateMedicineInfo
();
Mongoose
.
connect
(
MONGO_URL
,
{
useFindAndModify
:
false
,
useNewUrlParser
:
true
,
useUnifiedTopology
:
true
,
useCreateIndex
:
true
}).
then
(()
=>
{
console
.
log
(
'Mongo DB is connected : '
,
MONGO_URL
);
updateMedicineInfo
.
updateMedicineInfo
();
}).
catch
(
e
=>
{
console
.
log
(
e
,
error
);
})
...
...
server/package-lock.json
View file @
fd00b32
This diff is collapsed. Click to expand it.
server/package.json
View file @
fd00b32
...
...
@@ -15,5 +15,8 @@
"IoT"
],
"author"
:
"박권수"
,
"license"
:
"ISC"
"license"
:
"ISC"
,
"dependencies"
:
{
"mqtt"
:
"^4.2.6"
}
}
...
...
Please
register
or
login
to post a comment