Giter VIP home page Giter VIP logo

serverless-notifications's Introduction

Serverless Notifications

Serverless Service for Serverless Notifications (AWS IoT)

Tutorial

Blog post: Serverless Notifications on AWS (Nov 5th 2016)

Note: at the time it was not an issue, but currently it is necessary to use the ATS IoT endpoint (use iot.describeEndpoint({ endpointType: 'iot:Data-ATS' }). The code was fixed in this repository, but not in the blog post.

Demo: https://serverless-notifications.zanon.dev

Usage

  1. With the Serverless Framework v1.x, run serverless install --url https://github.com/diegozanon/serverless-notifications

  2. Inside the create-role folder, run npm install and node index to create an IoT role. I've named the role as serverless-notifications-iot. If you want to rename, modify this file and the handler.js file.

  3. Deploy the Lambda function with serverless deploy

  4. Edit the index.html file that is placed inside the frontend folder to use your Lambda endpoint

  5. To modify the IoT client, follow these steps:
    5.1 Browse the iot folder
    5.2 Edit the index.js file
    5.3 Install dependencies with npm install
    5.4 Run node make-bundle
    5.5 Replace the bundle.js inside the frontend folder by this new bundle.js file

  6. Deploy the frontend to S3

serverless-notifications's People

Contributors

dependabot[bot] avatar diegozanon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

serverless-notifications's Issues

Frontend to be deployed too

It may be worth noting that the front end should be pushed to an S3 bucket as the deploy does not do this.

Great example ...

Hey there,

This is a simple example with some very clean code.

In you blog post you mention that if messages were between two users you would create a new
topic.

Just wondering, could you do that at runtime and where abouts in your code would you do this?

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.