Skip to content

Latest commit

History

History
57 lines (35 loc) 路 1.36 KB

README.md

File metadata and controls

57 lines (35 loc) 路 1.36 KB

A very (very) simple Webhook implementation in Python

A simple webhook implementation between two different API services

About the app

This apps simulates a user registration in an application which is split between two services:

  • A REST API
  • A mailing service

When a user registers, a background task (sending the e-mail) is scheduled to run after the request. The API server sends the request with the user's e-mail to the mailing service which then sends the e-mail to the user.

Application flow

Obs: Flowchart made with Mermaid, to visualize is use a markdown editor such as StackEdit.

Application flow

Installation

Requirements:

  • Python
  • Node

Initialize virtual environment

$ python -m venv ./venv

Install the dependencies

$ pip install -r requirements.txt

Scripts

REST API

$ yarn dev:api

Mailing service

$ yarn dev:mail

Testing the integration

$ yarn send:request