Git Product home page Git Product logo

wecky-notify's Introduction

Wecky - User Notification

Notifies the user about a changed website using AWS SES.

Dependencies

  • Gets triggered by S3 bucket wecky-screens for new objects.
  • Queries DynamoDB for Websites and Users for the given object.
  • Notifies users using SES for mail delivery.

Region eu-central-1 is hardcoded for now.

Build

Building is straightforward, using Maven:

mvn package

The shade plugin is already attached to the package phase, so the resulting JAR can be uploaded to AWS. Alternatively you can use the buildspec.yml file to build the project in AWS CodeStar.

Test

Localstack is used during tests, to spin up local docker containers with mocked AWS Services. If you want to skip the end-2-end tests you can run the tests using

mvn package -DargLine="-Dci-server=true"

Running locally

Using sam-cli and localstack you can run the lambda function locally.

You need to set the environment variable DYNDB_LOCAL to point to the local DynamoDB that gets started by localstack.

ℹī¸ Environment variables need to be set in the template.yml file, since the Lambda Function is run in a docker container. See template_sam.yml for an example.

Then run sam local invoke "TriggerNotification" -e event.json

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.