Giter Site home page Giter Site logo

serverless-websocket-example's Introduction

Serverless Websocket Example

Overview

이 Sample project는 API Gateway, Lambda, DynamoDB를 이용하여 Websocket을 이용한 실시간성 application을 만들어보는 예제입니다.

Lambda / API Gateway / DynamoDB 관리는 Cloudformation과 serverless framework를 사용하였습니다.

  1. 배포 - npm run deploy

    • 이 스크립트는 다음과 같은 일을 합니다.
      • TSC compile
      • npm install
      • node_modules와 js파일, html파일을 dst.zip으로 생성
      • serverless framework (sls deploy)를 이용해 dst.zip을 lambda에 배포
      • serverless.yml 의 cloudformation 부분 배포
  2. 테스트 - npm run test

    • 이 스크립트는 다음과 같은 일을 합니다.
      • TSC compile
      • mocha로 **/test/*_spec.js 파일들 실행
  3. Log - npm run log

    • 이 스크립트는 다음과 같은 일을 합니다.
      • sls logs --tail 명령어를 이용해, Lambda의 Log를 실시간으로 출력합니다.

https://fz5bsno29d.execute-api.ap-northeast-2.amazonaws.com/prod 여기서 테스트 해보실수 있습니다.

HandsOn Guide

https://www.icloud.com/keynote/0fL0mibQtgTg4ABkkZz91Qi0g#Handson

serverless-websocket-example's People

Contributors

breath103 avatar mooyoul avatar jcynico avatar novemberde avatar

Watchers

James Cloos 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.