myPolling Svelte Themes

Mypolling

Simple Polling App made using Svelte

Svelte Polling App

Overview

This Svelte application is a simple polling tool that allows users to create polls with two answer options. Users can add, vote on, and delete polls. Each poll displays the number of votes and the percentage of votes for each answer option.

Features

  • Create Polls: Users can create polls with two distinct answer options.
  • Vote on Polls: Users can vote on active polls.
  • View Poll Results: The app displays a visual representation of poll results, showing both the number of votes and the percentages for each answer.
  • Delete Polls: Users can delete polls they have created.

Installation and Setup

To run this Svelte application, you need to have Node.js installed on your system.

  1. Clone the Repository ```sh git clone https://github.com/your-repo/svelte-polling-app.git cd svelte-polling-app
  2. Install Dependencies ```sh npm install
  3. Run the application ```sh npm run dev

Usage

Adding a Poll

Navigate to the 'Add a New Poll' tab in the application. Here, you can enter your question and specify the two answer options. Once you've filled in these details, click 'Add Poll' to create the poll.

Voting on a Poll

To vote, simply choose a poll from the list of active polls and click on your preferred answer option. Your vote will be immediately recorded and reflected in the poll results.

Viewing Poll Results

After casting your vote, or when viewing an active poll, you will see a visual representation of the results. This includes both the number of votes and the percentage that each answer option has received.

Deleting a Poll

If you have created a poll and wish to delete it, you can do so by clicking the 'Delete' button located next to your poll. This will remove the poll from the list of active polls.

Top categories

Loading Svelte Themes