Giter Site home page Giter Site logo

mauricionr / microsoft_techdays2014_server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from youngjaekim/microsoft_techdays2014_server

0.0 1.0 0.0 18.81 MB

TechDays2014 Azure WebJobs 데모 소스

Home Page: http://www.slideshare.net/youngjaekim58/20140923-tech-daysazurewebsites

License: MIT License

C# 21.57% PowerShell 78.43%

microsoft_techdays2014_server's Introduction

TechDays2014 Azure WebJobs 데모 소스

#이 프로그램은

#시나리오

  1. Youtube 동영상링크를 공유하는 게시판 서비스가 있다고 가정한다. 이 때, 링크의 썸네일을 보여주고자 한다.
  2. 가상의 게시판 서비스는 입력된 (1) 동영상 링크(2) 저장할 썸네일 이미지 파일명을 Json문자열로 Azure Storage Queue에 전송한다.
  3. Queue에 입력된 정보에 대하여
  • Youtube 링크가 1개인 경우, 그 영상의 썸네일 이미지를 받아서 BlobFilename에 지정된 이름으로 이미지 파일을 저장한다.
  • Youtube 링크가 2개인 경우, 두 동영상의 썸네일 이미지를 받아서 절반씩 합성한 후 BlobFilename에 지정된 이름으로 이미지 파일을 저장한다.
  • Youtube 링크가 없는 경우, error라고 적힌 텍스트파일을 생성한다.

#설치 및 실행방법

  1. 서비스 개설
  2. Azure WebSites 생성
  3. Azure Storage 생성
  4. 설치
  5. 본 프로젝트를 받아서 컴파일해본다. 에러가 날 경우 프로젝트 우클릭 후 nuget restore를 한다.
  6. Azure WebSites에 git deployment 설정을 한 후 본 솔루션를 Push한다. 설정방법
  7. 또는, Visual Studio에서 본 프로젝트에 우클륵한 후 "Publish as Azure WebJobs..."를 선택한다.
  8. Azure WebSites > "웹작업(WebJobs)" 메뉴에 하나의 작업이 생성되었는지 확인.
  9. ConnectionString 설정
  10. Azure Storage의 엑세스키 관리를 클릭하여 키를 복사(primary, secondary 상관없음).
  11. Azure WebSites > Configuration > ConnectionString에서 이름 AzureWebJobsDashboard를 생성한 후 값 DefaultEndpointsProtocol=https;AccountName=[STORAGE_NAME];AccountKey=[STORAGE_ACCESS_KEY]형태로 키를 입력. STORAGE_NAME에 Storage이름을, [STORAGE_ACCESS_KEY]에 앞서 Storage메뉴에서 복사한 액세스키를 입력한다. 세번째 콤보박스는 사용자 지정으로 선택함.
  12. AzureWebJobsStorage의 이름으로 2번과 동일한 값을 입력.
  13. 저장한다.
  14. 테스트
  15. Storage에 webjobsqueue 이름의 Queue를 생성한 후, {"Links":["http://www.youtube.com/watch?v=h52LpQ1FBm8"],"BlobFilename":"single.jpg"}를 입력.
  16. 잠시 후 Storage의 Blob 중 techdays라는 컨테이너에 single.jpg라는 이름의 파일이 생성됨. 다운받아서 해당 Youtube 링크의 썸네일이 성공적으로 생성되었는지 확인한다.
  17. Storage에 webjobsqueue 이름의 Queue를 생성한 후, {"Links":["http://www.youtube.com/watch?v=h52LpQ1FBm8","http://www.youtube.com/watch?v=ZXK5a6IcjLE"],"BlobFilename":"merge.jpg"}를 입력.
  18. 마찬가지로 잠시 후 Storage의 Blob 중 techdays라는 컨테이너에 merge.jpg라는 이름의 파일이 생성됨. 다운받아서 두 Youtube 링크의 썸네일 이미지가 반반씩 합성되어있는지 확인한다.

#개발환경

  • 언어: C#
  • Visual Studio 2013 Ultimate ENG
  • Windows 8.1 Professional KOR

microsoft_techdays2014_server's People

Contributors

youngjaekim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.