Showing
7 changed files
with
205 additions
and
12 deletions
BLANK_README.md
0 → 100644
| 1 | +<!-- | ||
| 2 | +*** Thanks for checking out this README Template. If you have a suggestion that would | ||
| 3 | +*** make this better, please fork the repo and create a pull request or simply open | ||
| 4 | +*** an issue with the tag "enhancement". | ||
| 5 | +*** Thanks again! Now go create something AMAZING! :D | ||
| 6 | +*** | ||
| 7 | +*** | ||
| 8 | +*** | ||
| 9 | +*** To avoid retyping too much info. Do a search and replace for the following: | ||
| 10 | +*** github_username, repo, twitter_handle, email | ||
| 11 | +--> | ||
| 12 | + | ||
| 13 | + | ||
| 14 | + | ||
| 15 | + | ||
| 16 | + | ||
| 17 | +<!-- PROJECT SHIELDS --> | ||
| 18 | +<!-- | ||
| 19 | +*** I'm using markdown "reference style" links for readability. | ||
| 20 | +*** Reference links are enclosed in brackets [ ] instead of parentheses ( ). | ||
| 21 | +*** See the bottom of this document for the declaration of the reference variables | ||
| 22 | +*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use. | ||
| 23 | +*** https://www.markdownguide.org/basic-syntax/#reference-style-links | ||
| 24 | +--> | ||
| 25 | +[![Contributors][contributors-shield]][contributors-url] | ||
| 26 | +[![Forks][forks-shield]][forks-url] | ||
| 27 | +[![Stargazers][stars-shield]][stars-url] | ||
| 28 | +[![Issues][issues-shield]][issues-url] | ||
| 29 | +[![MIT License][license-shield]][license-url] | ||
| 30 | +[![LinkedIn][linkedin-shield]][linkedin-url] | ||
| 31 | + | ||
| 32 | + | ||
| 33 | + | ||
| 34 | +<!-- TABLE OF CONTENTS --> | ||
| 35 | +## Table of Contents | ||
| 36 | + | ||
| 37 | +* [About the Project](#about-the-project) | ||
| 38 | + * [Built With](#built-with) | ||
| 39 | +* [Getting Started](#getting-started) | ||
| 40 | + * [Prerequisites](#prerequisites) | ||
| 41 | + * [Installation](#installation) | ||
| 42 | +* [Usage](#usage) | ||
| 43 | +* [Roadmap](#roadmap) | ||
| 44 | +* [Contributing](#contributing) | ||
| 45 | +* [License](#license) | ||
| 46 | +* [Contact](#contact) | ||
| 47 | +* [Acknowledgements](#acknowledgements) | ||
| 48 | + | ||
| 49 | + | ||
| 50 | + | ||
| 51 | +<!-- ABOUT THE PROJECT --> | ||
| 52 | +## About The Project | ||
| 53 | + | ||
| 54 | +[![Product Name Screen Shot][product-screenshot]] | ||
| 55 | + | ||
| 56 | +Here's a blank template to get started: | ||
| 57 | +**To avoid retyping too much info. Do a search and replace with your text editor for the following:** | ||
| 58 | +`github_username`, `repo`, `twitter_handle`, `email` | ||
| 59 | + | ||
| 60 | + | ||
| 61 | +### Built With | ||
| 62 | + | ||
| 63 | +* []() | ||
| 64 | +* []() | ||
| 65 | +* []() | ||
| 66 | + | ||
| 67 | + | ||
| 68 | + | ||
| 69 | +<!-- GETTING STARTED --> | ||
| 70 | +## Getting Started | ||
| 71 | + | ||
| 72 | +To get a local copy up and running follow these simple steps. | ||
| 73 | + | ||
| 74 | +### Prerequisites | ||
| 75 | + | ||
| 76 | +This is an example of how to list things you need to use the software and how to install them. | ||
| 77 | +* npm | ||
| 78 | +```sh | ||
| 79 | +npm install npm@latest -g | ||
| 80 | +``` | ||
| 81 | + | ||
| 82 | +### Installation | ||
| 83 | + | ||
| 84 | +1. Clone the repo | ||
| 85 | +```sh | ||
| 86 | +git clone https://github.com/github_username/repo.git | ||
| 87 | +``` | ||
| 88 | +2. Install NPM packages | ||
| 89 | +```sh | ||
| 90 | +npm install | ||
| 91 | +``` | ||
| 92 | + | ||
| 93 | + | ||
| 94 | + | ||
| 95 | +<!-- USAGE EXAMPLES --> | ||
| 96 | +## Usage | ||
| 97 | + | ||
| 98 | +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. | ||
| 99 | + | ||
| 100 | +_For more examples, please refer to the [Documentation](https://example.com)_ | ||
| 101 | + | ||
| 102 | + | ||
| 103 | + | ||
| 104 | +<!-- ROADMAP --> | ||
| 105 | +## Roadmap | ||
| 106 | + | ||
| 107 | +See the [open issues](https://github.com/github_username/repo/issues) for a list of proposed features (and known issues). | ||
| 108 | + | ||
| 109 | + | ||
| 110 | + | ||
| 111 | +<!-- CONTRIBUTING --> | ||
| 112 | +## Contributing | ||
| 113 | + | ||
| 114 | +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**. | ||
| 115 | + | ||
| 116 | +1. Fork the Project | ||
| 117 | +2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) | ||
| 118 | +3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) | ||
| 119 | +4. Push to the Branch (`git push origin feature/AmazingFeature`) | ||
| 120 | +5. Open a Pull Request | ||
| 121 | + | ||
| 122 | + | ||
| 123 | + | ||
| 124 | +<!-- LICENSE --> | ||
| 125 | +## License | ||
| 126 | + | ||
| 127 | +Distributed under the MIT License. See `LICENSE` for more information. | ||
| 128 | + | ||
| 129 | + | ||
| 130 | + | ||
| 131 | +<!-- CONTACT --> | ||
| 132 | +## Contact | ||
| 133 | + | ||
| 134 | +Your Name - [@twitter_handle](https://twitter.com/twitter_handle) - email | ||
| 135 | + | ||
| 136 | +Project Link: [https://github.com/github_username/repo](https://github.com/github_username/repo) | ||
| 137 | + | ||
| 138 | + | ||
| 139 | + | ||
| 140 | +<!-- ACKNOWLEDGEMENTS --> | ||
| 141 | +## Acknowledgements | ||
| 142 | + | ||
| 143 | +* []() | ||
| 144 | +* []() | ||
| 145 | +* []() | ||
| 146 | + | ||
| 147 | + | ||
| 148 | + | ||
| 149 | + | ||
| 150 | + | ||
| 151 | +<!-- MARKDOWN LINKS & IMAGES --> | ||
| 152 | +<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --> | ||
| 153 | +[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=flat-square | ||
| 154 | +[contributors-url]: https://github.com/othneildrew/Best-README-Template/graphs/contributors | ||
| 155 | +[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=flat-square | ||
| 156 | +[forks-url]: https://github.com/othneildrew/Best-README-Template/network/members | ||
| 157 | +[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=flat-square | ||
| 158 | +[stars-url]: https://github.com/othneildrew/Best-README-Template/stargazers | ||
| 159 | +[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=flat-square | ||
| 160 | +[issues-url]: https://github.com/othneildrew/Best-README-Template/issues | ||
| 161 | +[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=flat-square | ||
| 162 | +[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt | ||
| 163 | +[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555 | ||
| 164 | +[linkedin-url]: https://linkedin.com/in/othneildrew | ||
| 165 | +[product-screenshot]: images/screenshot.png |
| ... | @@ -13,9 +13,9 @@ var bucketName = "kindofyourdogimage"; | ... | @@ -13,9 +13,9 @@ var bucketName = "kindofyourdogimage"; |
| 13 | // s3 버킷의 엔드 포인트 | 13 | // s3 버킷의 엔드 포인트 |
| 14 | var bucketRegion = 'ap-northeast-2'; | 14 | var bucketRegion = 'ap-northeast-2'; |
| 15 | // access key | 15 | // access key |
| 16 | -var accessId= 'your_accessId'; | 16 | +var accessId= 'AKIAQVXKGU466IQYEGRN'; |
| 17 | // access secret key | 17 | // access secret key |
| 18 | -var secretKey = 'yout_secretKey'; | 18 | +var secretKey = '0FrMPdZR6+AkMkabAyPZWrnsVVi9EaI9/IdrWKCm'; |
| 19 | // AWS Cognito 인증 | 19 | // AWS Cognito 인증 |
| 20 | AWS.config.update({ | 20 | AWS.config.update({ |
| 21 | region:bucketRegion, | 21 | region:bucketRegion, |
| ... | @@ -35,7 +35,7 @@ app.use(logger('dev')); | ... | @@ -35,7 +35,7 @@ app.use(logger('dev')); |
| 35 | app.use(express.json()); | 35 | app.use(express.json()); |
| 36 | app.use(express.urlencoded({ extended: false })); | 36 | app.use(express.urlencoded({ extended: false })); |
| 37 | app.use(cookieParser()); | 37 | app.use(cookieParser()); |
| 38 | -app.use(express.static(path.join(__dirname, 'public'))); | 38 | +app.use(express.static(__dirname)); |
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | // image 올리는 화면 | 41 | // image 올리는 화면 | ... | ... |
package.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "oss-project", | ||
| 3 | + "version": "1.0.0", | ||
| 4 | + "description": "AWS Rekognition을 이용한 강아지 종류 분석입니다.", | ||
| 5 | + "main": "app.js", | ||
| 6 | + "dependencies": { | ||
| 7 | + "aws-sdk": "^2.703.0", | ||
| 8 | + "cookie-parser": "^1.4.5", | ||
| 9 | + "ejs": "^3.1.3", | ||
| 10 | + "express": "^4.17.1", | ||
| 11 | + "formidable": "^1.2.2", | ||
| 12 | + "image-to-base64": "^2.1.0", | ||
| 13 | + "mocha-jsdom": "^2.0.0", | ||
| 14 | + "morgan": "^1.10.0", | ||
| 15 | + "multer": "^1.4.2", | ||
| 16 | + "nodemon": "^2.0.4" | ||
| 17 | + }, | ||
| 18 | + "devDependencies": {}, | ||
| 19 | + "scripts": { | ||
| 20 | + "test": "echo \"Error: no test specified\" && exit 1", | ||
| 21 | + "start" : "node bin/www" | ||
| 22 | + }, | ||
| 23 | + "repository": { | ||
| 24 | + "type": "git", | ||
| 25 | + "url": "ssh://git@khuhub.khu.ac.kr:12959/2016101156/OSS-Project.git" | ||
| 26 | + }, | ||
| 27 | + "author": "", | ||
| 28 | + "license": "Apache License 2.0" | ||
| 29 | +} |
| 1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | - <title>KindOfYourDog</title> | ||
| 5 | <meta charset="utf-8" /> | 4 | <meta charset="utf-8" /> |
| 6 | - <link rel="stylesheet" href="stylesheets/style.css"> | 5 | + <link rel="stylesheet" href="public/stylesheets/style.css"> |
| 6 | + <title>KindOfYourDog</title> | ||
| 7 | </head> | 7 | </head> |
| 8 | <body> | 8 | <body> |
| 9 | <h1>Kind of Your Dog</h1> | 9 | <h1>Kind of Your Dog</h1> |
| 10 | <div> | 10 | <div> |
| 11 | <img src = "puppy.jpg"> | 11 | <img src = "puppy.jpg"> |
| 12 | - | ||
| 13 | </div> | 12 | </div> |
| 14 | <div> | 13 | <div> |
| 15 | <form enctype="multipart/form-data" method="post" action="upload_receiver"> | 14 | <form enctype="multipart/form-data" method="post" action="upload_receiver"> |
| ... | @@ -18,7 +17,7 @@ | ... | @@ -18,7 +17,7 @@ |
| 18 | </form> | 17 | </form> |
| 19 | </div> | 18 | </div> |
| 20 | <div> | 19 | <div> |
| 21 | - <h2>이 개의 종류는</h2> | 20 | + <h2>종류를 알고 싶은 개의 사진을 올리세요</h2> |
| 22 | </div> | 21 | </div> |
| 23 | </body> | 22 | </body> |
| 24 | </html> | 23 | </html> | ... | ... |
| 1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | - <title>KindOfYourDog</title> | ||
| 5 | <meta charset="utf-8" /> | 4 | <meta charset="utf-8" /> |
| 6 | - <link rel="stylesheet" href="stylesheets/style.css"> | 5 | + <link rel="stylesheet" href="public/stylesheets/style.css"> |
| 6 | + <title>KindOfYourDog</title> | ||
| 7 | </head> | 7 | </head> |
| 8 | <body> | 8 | <body> |
| 9 | <h1>Kind of Your Dog</h1> | 9 | <h1>Kind of Your Dog</h1> |
| ... | @@ -14,8 +14,8 @@ | ... | @@ -14,8 +14,8 @@ |
| 14 | </form> | 14 | </form> |
| 15 | </div> | 15 | </div> |
| 16 | <div> | 16 | <div> |
| 17 | - <h2>이 개의 종류는</h2> | 17 | + <h3>이 개의 종류는</h3> |
| 18 | - <h3><%=dogKind%></h3> | 18 | + <h2><%=dogKind%></h2> |
| 19 | </div> | 19 | </div> |
| 20 | </body> | 20 | </body> |
| 21 | </html> | 21 | </html> | ... | ... |
views/optimize.jpg
0 → 100644
85.2 KB
-
Please register or login to post a comment