Code Monkey home page Code Monkey logo

notifier-severless's Introduction

Serverless Notifier

Introduction

This repository contains Serverless lambda which can be host in AWS environment for handling Email, SMS, Push Notifications.

This lambda will automatically trigger based on the SQS messages. This will consume SQS messages and send relevant notification based on the notification type.

Installation

Initially clone the project from this repository.

$ https://github.com/nu1ww/notifier-severless.git

Please refer following steps to run the project in local or development environment.

Configure AWS Credentials

Please add following AWS credentials to .bashrc file or run directly in the terminal instance.

export AWS_ACCESS_KEY_ID="<Your Access Key Id>"
export AWS_SECRET_ACCESS_KEY="<Your Access Key>"
export AWS_DEFAULT_REGION="<Used AWS Region>"

First clone the project form this repository then run following commands.

Install Serverless

$ npm i serverless -g --save

For deploying the code please execute following command.

$ serverless deploy

or you can run this with stage (Ex - prod)

$ serverless deploy --stage production

Code/Folder Structure

This application contains following code/folder structure.

  • .serverless/ – temporary location for storing serverless cache and state files
  • connectors/ – contains all the 3rd party communication channels (Ex - Email, SMS) related logics
  • helpers/ – contains reusable logics
  • services/ – contains services which initiate data processing
  • handler.js – initializes the app and glues everything together
  • package.json – remembers all packages that app depends on and their versions
  • serverless.yml – serverless framework's YML based configuration file

notifier-severless's People

Contributors

nu1ww avatar layoutindex 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.