김현기

image파일 추가

node_modules/
package.json
\ No newline at end of file
package-lock.json
\ No newline at end of file
......
<!--
*** Thanks for checking out this README Template. If you have a suggestion that would
*** make this better, please fork the repo and create a pull request or simply open
*** an issue with the tag "enhancement".
*** Thanks again! Now go create something AMAZING! :D
***
***
***
*** To avoid retyping too much info. Do a search and replace for the following:
*** github_username, repo, twitter_handle, email
-->
<!-- PROJECT SHIELDS -->
<!--
*** I'm using markdown "reference style" links for readability.
*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).
*** See the bottom of this document for the declaration of the reference variables
*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
-->
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
<!-- TABLE OF CONTENTS -->
## Table of Contents
* [About the Project](#about-the-project)
* [Built With](#built-with)
* [Getting Started](#getting-started)
* [Prerequisites](#prerequisites)
* [Installation](#installation)
* [Usage](#usage)
* [Roadmap](#roadmap)
* [Contributing](#contributing)
* [License](#license)
* [Contact](#contact)
* [Acknowledgements](#acknowledgements)
<!-- ABOUT THE PROJECT -->
## About The Project
[![Product Name Screen Shot][product-screenshot]]
Here's a blank template to get started:
**To avoid retyping too much info. Do a search and replace with your text editor for the following:**
`github_username`, `repo`, `twitter_handle`, `email`
### Built With
* []()
* []()
* []()
<!-- GETTING STARTED -->
## Getting Started
To get a local copy up and running follow these simple steps.
### Prerequisites
This is an example of how to list things you need to use the software and how to install them.
* npm
```sh
npm install npm@latest -g
```
### Installation
1. Clone the repo
```sh
git clone https://github.com/github_username/repo.git
```
2. Install NPM packages
```sh
npm install
```
<!-- USAGE EXAMPLES -->
## Usage
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
_For more examples, please refer to the [Documentation](https://example.com)_
<!-- ROADMAP -->
## Roadmap
See the [open issues](https://github.com/github_username/repo/issues) for a list of proposed features (and known issues).
<!-- CONTRIBUTING -->
## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
<!-- LICENSE -->
## License
Distributed under the MIT License. See `LICENSE` for more information.
<!-- CONTACT -->
## Contact
Your Name - [@twitter_handle](https://twitter.com/twitter_handle) - email
Project Link: [https://github.com/github_username/repo](https://github.com/github_username/repo)
<!-- ACKNOWLEDGEMENTS -->
## Acknowledgements
* []()
* []()
* []()
<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=flat-square
[contributors-url]: https://github.com/othneildrew/Best-README-Template/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=flat-square
[forks-url]: https://github.com/othneildrew/Best-README-Template/network/members
[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=flat-square
[stars-url]: https://github.com/othneildrew/Best-README-Template/stargazers
[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=flat-square
[issues-url]: https://github.com/othneildrew/Best-README-Template/issues
[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=flat-square
[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/othneildrew
[product-screenshot]: images/screenshot.png
......@@ -13,9 +13,9 @@ var bucketName = "kindofyourdogimage";
// s3 버킷의 엔드 포인트
var bucketRegion = 'ap-northeast-2';
// access key
var accessId= 'your_accessId';
var accessId= 'AKIAQVXKGU466IQYEGRN';
// access secret key
var secretKey = 'yout_secretKey';
var secretKey = '0FrMPdZR6+AkMkabAyPZWrnsVVi9EaI9/IdrWKCm';
// AWS Cognito 인증
AWS.config.update({
region:bucketRegion,
......@@ -35,7 +35,7 @@ app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(__dirname));
// image 올리는 화면
......
{
"name": "oss-project",
"version": "1.0.0",
"description": "AWS Rekognition을 이용한 강아지 종류 분석입니다.",
"main": "app.js",
"dependencies": {
"aws-sdk": "^2.703.0",
"cookie-parser": "^1.4.5",
"ejs": "^3.1.3",
"express": "^4.17.1",
"formidable": "^1.2.2",
"image-to-base64": "^2.1.0",
"mocha-jsdom": "^2.0.0",
"morgan": "^1.10.0",
"multer": "^1.4.2",
"nodemon": "^2.0.4"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start" : "node bin/www"
},
"repository": {
"type": "git",
"url": "ssh://git@khuhub.khu.ac.kr:12959/2016101156/OSS-Project.git"
},
"author": "",
"license": "Apache License 2.0"
}
<!DOCTYPE html>
<html>
<head>
<title>KindOfYourDog</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="stylesheets/style.css">
<link rel="stylesheet" href="public/stylesheets/style.css">
<title>KindOfYourDog</title>
</head>
<body>
<h1>Kind of Your Dog</h1>
<div>
<img src = "puppy.jpg">
</div>
<div>
<form enctype="multipart/form-data" method="post" action="upload_receiver">
......@@ -18,7 +17,7 @@
</form>
</div>
<div>
<h2>이 개의 종류는</h2>
<h2>종류를 알고 싶은 개의 사진을 올리세요</h2>
</div>
</body>
</html>
......
<!DOCTYPE html>
<html>
<head>
<title>KindOfYourDog</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="stylesheets/style.css">
<link rel="stylesheet" href="public/stylesheets/style.css">
<title>KindOfYourDog</title>
</head>
<body>
<h1>Kind of Your Dog</h1>
......@@ -14,8 +14,8 @@
</form>
</div>
<div>
<h2>이 개의 종류는</h2>
<h3><%=dogKind%></h3>
<h3>이 개의 종류는</h3>
<h2><%=dogKind%></h2>
</div>
</body>
</html>
......