Giter Site home page Giter Site logo

tg-messaging's Introduction

Messaging App

This service accepts the necessary information and sends a notification to customers.
It provides an abstraction between at two different messaging service providers. (Pusher and AWS SES). Messages are sent via AWS SQS service, and in case of failure of one of the service - customer won't notice it. And service will be able to resend the message, because all data is stored in queue. Also service pushed all logs to another queue to keep track of all history

##How To Start

  • clone repository to your local machine.
  • cd to project directory
  • run composer install
  • copy .env.example to .env file
  • run php artisan serve to start local php server
  • open(download if you don't have it yet) api testing tool (postman for example)
  • send POST api request to url http://127.0.0.1:8000/api/message with body
{
    "sender":"Oleh",
    "receiver":"[email protected]",
    "body": "Hello from Ukraine to Lithuania!"
}
  • all fields are required and have these restrictions
'sender' => 'required|string|max:100|min:1',
'receiver' => 'required|email|max:100|min:1',
'body' => 'required|string|max:255|min:1'

Technologies stack

  • PHP 7.4.
  • Laravel 7.0.
  • AWS SQS.
  • AWS SES.
  • Pusher

tg-messaging's People

Contributors

oismailov avatar

Watchers

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