Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김현기
/
KindOfYourDog
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-06-29 15:23:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
62ff85e09e9f9e4b051069ca9c7465efabc99ba1
62ff85e0
1 parent
6a7a356b
교수님 확인용
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
app.js
app.js
View file @
62ff85e
...
...
@@ -5,16 +5,18 @@ var path = require('path');
var
cookieParser
=
require
(
'cookie-parser'
);
var
logger
=
require
(
'morgan'
);
var
fs
=
require
(
'fs'
)
var
AWS
=
require
(
'aws-sdk'
);
// AWS 의 서비스를 이용하기 위해 사용
var
AWS
=
require
(
'aws-sdk'
);
const
{
Rekognition
}
=
require
(
'aws-sdk'
);
// AWS 의 서비스를 이용하기 위해 사용
// 이미지를 저장할 버킷 이름
var
bucketName
=
"kindofyourdogimage"
;
// s3 버킷의 엔드 포인트
var
bucketRegion
=
'ap-northeast-2'
;
// access key
var
accessId
=
'
your_accessId
'
;
var
accessId
=
'
ACCESSID
'
;
// access secret key
var
secretKey
=
'
your_secretKey
'
;
var
secretKey
=
'
SECRETKEY
'
;
// AWS Cognito 인증
AWS
.
config
.
update
({
region
:
bucketRegion
,
...
...
@@ -94,9 +96,11 @@ app.post('/upload_receiver', function(req,res){
return
true
;
}
});
if
(
dogKind
==
""
)
res
.
render
(
'kind'
,
{
dogKind
:
"무슨 종류인지 잘 모르겠네요"
});
});
result
=
`<img src="
${
data
.
Location
}
>`
;
console
.
log
(
result
);
//
result = `<img src="${data.Location}>`;
//
console.log(result);
}
});
...
...
Please
register
or
login
to post a comment