A minimal frontend to test the Lucky Draw Backend. Live URL: http://luckydrawapi.s3-website.ap-south-1.amazonaws.com/
- Clone the repo
git clone https://github.com/ayushjainrksh/lucky-draw-frontend.git
- Install dependencies
npm install
- Start the application
npm start
- Visit
http://localhost:3000
- Select a user by clicking on any one of the userId being displayed.
- Click
Get ticket
to generate a new raffle ticket. You can generate as much tickets as you want. The current ticket would be shown in the TicketId. - Create an event by entering name, schedule and prizes.
- You can see the latest upcoming event in the upcoming events section.
- Click on the
enter
button to enter an event ( with the given ticketId ). A user can enter an event only once and a ticket can also by used only once. It would throw an error if you try to do any of these things. - Once the scheduled time of the event is reached, the winner is announced.
- You can check the winners of all the events of the last 1 week.