Skip to content

Youngestdev/fastapi-todo-convoy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Todo Webhook Emitter

This is a sample application that emits webhook events once a CRUD operation is executed from the TODO application.

Setup

  1. Clone the repository:
$ git clone https://github.com/Youngestdev/fastapi-todo-convoy
  1. Install the dependencies:
$ poetry shell & poetry install
  1. Create a .env and set your Convoy source URL:
WEBHOOK_RECEIVER_URL=<your-convoy-receiver-url>
  1. Start the application:
$ python run main.py
  1. Run your application from localhost:8080/docs.

Working principle

Events are emitted to the Convoy incoming project by the send_webhook_event(event_type) after an operation is executed.

TODO

[ ] Restructure application: move events to different file, create dataclasses. [ ] Add HMAC signature [ ] Rewrite README once blogpost is ready.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages