Name: raffleapp
Owner: Serverless
Description: A serverless raffle app
Created: 2017-09-22 18:14:32.0
Updated: 2018-02-21 19:48:56.0
Pushed: 2018-02-21 19:48:48.0
Homepage: https://serverless-raffle.netlify.com/
Size: 84
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A simple raffle application with a backend serverless service. The service provides functionaity exposed via an HTTP API. The routes are as follows:
POST /create
: Admin endpoint that creates a shortcode for a new raffle instance based on event name. Used to create a new raffle for an event. Returns an 8 character alphanumeric shortcode xf4c85g9
that will be then used to do a raffle at raffle.serverless.com/xf4c85g9
GET /{shortcode}
: Admin endpoint that starts a raffle, and picks a winnerPUT /{shortcode}
: Admin endpoint that ends a raffle, and inactivates itPOST /{shortcode}/register
: Public endpoint that lets user register for the raffle. Must pass in an identification method.