On the home page ('/' ), Login and Signup using the login and signup form. On success, redirect to the /polls page |
2 |
Logout by clicking the logout button |
1 |
If a non-logged-in user tries to visit the polls page, redirect them to the login page |
1 |
On the polls page load, see a form and empty current poll div |
2 |
On the polls page load, fetch all past polls and render them to the past polls div |
2 |
On submit, add the poll options and question to the current poll div |
1 |
On clicking add or subtract, increment and decrement the correct score in the current poll div |
1 |
On clicking finish, empty the current poll div, and use supabase to add the current poll to the database. |
1 |
On clicking finish, clear the past polls div, then fetch all past polls from supabase and render them in the past polls div. |
2 |