Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TileCloud の開発を支える技術

TileCloud の開発を支える技術

2019/6/28 (金)に開催された KYOTO.git での LT のスライドです。

KamataRyo

June 28, 2019
Tweet

More Decks by KamataRyo

Other Decks in Technology

Transcript

  1. TileCloud Λࢼ͢ • ެࣜυΩϡϝϯτΛެ։தʂ https://docs.tilecloud.io • Embed API ͱ͍͏ JavaScript

    API ΋ެ։͍ͯ͠·͢ • HTML Λهड़͢Δ͚ͩͰ஍ਤΛදࣔɾΧελϚΠζͰ ͖·͢ • playground (https://playcode.io/290651) Ͱ؆୯ʹࢼ͢ ͜ͱ΋Ͱ͖·͢
  2. Serverless • λΠϧ 
 CloudFront + Lambda@Edge + S3 •

    Embed API (JavaScript API)
 API Gateway + Lambda + DynamoDB • μογϡϘʔυ
 Cognito + API Gateway + Lambda + DynamoDB
  3. Circle CI • ίϛοτͷϓογϡʹԠͯࣗ͡ಈςετΛ࣮ߦ • Scheduled job Λ࢖͍ɺ e2e ςετʢEnd

    to End ςετʣΛఆظ࣮ߦ
 ʢ"ಥવյΕ͍ͯΔ" ঢ়گΛݕग़ʣ
  4. Circle CI • CD (Continuous Deployment) • Git λά͕ϓογϡ͞Εͨ࣌͸ຊ൪؀ڥʹσϓϩΠ •

    master ϒϥϯνͷίϛοτ͕ϓογϡ͞Εͨͱ͖͸։ ൃ؀ڥʹσϓϩΠ • ͦͷଞͷίϛοτ͸ςετͷΈΛ࣮ߦ
  5. Circle CI • Circle CI ͷ Workflow Λ׆༻ • ఆٛͨ͠ෳ਺ͷ

    job ͷ࣮ߦॱ Λ੍ޚ • ෳࡶͳϏϧυͰ΋ɺCI ͷ࣮ߦ ࣌ؒͷංେΛ๷͙ workflows: version: 2 build: jobs: - test: filters: tags: only: /.*/ branches: only: /.*/ - deploy: requires: - build filters: tags: only: /.*/ branches: only: master
  6. Φʔτϝʔγϣϯ • GitHub ͱ֤छαʔϏε (CIɾNetlify ͳͲ) ͱͷΠϯςάϨʔγϣϯΛ׆༻ • σϓϩΠɾςετͳͲͷ։ൃ޻ఔΛըҰԽ •

    CI Λ࢖͍ਝ଎ͳϑΟʔυόοΫΛಘΔ • Πϯϑϥߏ੒ͷࣗಈԽ • Serverless & CloudFormation ༷ʑͳϨΠϠʔͰࣗಈԽΛࢪ͠ɺଐਓԽΛ๷͙