Skip to content

Network/Events/EventFrontend for handling events triggered in Network

Notifications You must be signed in to change notification settings

ifyoudieincanada/event_frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventFrontend

The EventFrontend is designed to verify the format of submitted events. We need to enforce a format on submitted events. Specifically, JSON with a couple important keys.

# POST /event

%{
  "event" => "event.name",
  "payload" => %{
    "your-keys-here"
  }
}

We enforce that payload is a Map, and that event is present. Once these are verified, we hand off the event to the EventService.

# POST /subscribe

%{
  "event" => "event.name",
  "url" => "url-to-hit-with-event"
}

Endpoints:

  • POST /event Submit an event to the event system.
  • POST /subscribe Subscribe to receive events.

To start your Phoenix app:

  • Install dependencies with mix deps.get
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

About

Network/Events/EventFrontend for handling events triggered in Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published