https://github.com/serverless/raffleapp
A serverless raffle app
https://github.com/serverless/raffleapp
Last synced: about 2 months ago
JSON representation
A serverless raffle app
- Host: GitHub
- URL: https://github.com/serverless/raffleapp
- Owner: serverless
- Created: 2017-09-22T18:14:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T20:07:37.000Z (over 6 years ago)
- Last Synced: 2025-04-18T07:51:36.691Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://serverless-raffle.netlify.com/
- Size: 84 KB
- Stars: 8
- Watchers: 27
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raffle
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 winner
- `PUT /{shortcode}`: Admin endpoint that ends a raffle, and inactivates it
- `POST /{shortcode}/register`: Public endpoint that lets user register for the raffle. Must pass in an identification method.## Rules
- Admin functionality is protected by an Auth0 authorizer (/admin)
- Users must signup and login to the Platform to enter raffle