/rtpoll

Real-time polling platform built with Supabase and Next.js for Holiday Hackdays 2021. Winner of #1 place for the "real-time" category!

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

RT Poll

RT Poll is a completely free public poll platform built using Supabase for their Holiday Hackdays hackathon.

It allows authenticated users to easily create polls with multiple options, share them via link, and vote on polls shared by other users. To make the polls more interactive, RT Poll uses the realtime capabilities of the Supabase database, and uses Row Level Security (RLS) to ensure that the data remains secure and accurate.

RT Poll is publicly available at https://rtpoll.vercel.app/.

Built with ❤️ by

  • Emilio — GitHub · Twitter
  • Federico — no GitHub or Twitter yet

Technologies

This website is built using Supabase, Next.js and Chakra UI, and it is hosted on Vercel.

Supabase

The main goal of this hackathon project was to test out the new capabilities of the realtime database on Supabase, that now supports Row Level Security. However, RT Poll leverages multiple Supabase services:

  • Supabase Auth: used to let users sign in or create accounts using magic links to reduce friction
  • Supabase Database: used as database to keep data about polls, choices, votes, and the users themselves
  • Supabase Storage: used to store the users' profile pictures

This is the current database schema:

RT Poll Database Schema (made with Supabase Schema)

Quick demo

Here's a simple video of the realtime capabilities of RT Poll:

2021-rtpoll-rt.mp4