# @updivision/vue-easy-polls

> A Vue.js component for creating polls, voting and showing results. It’s easy to implement and easy to customize.

Latest version **1.0.5** (published 2019-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @updivision/vue-easy-polls
pnpm add @updivision/vue-easy-polls
yarn add @updivision/vue-easy-polls
bun add @updivision/vue-easy-polls
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-05-30 |
| First published | 2018-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 222.5 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 13 |
| Author | UPDIVISION |
| Maintainers | eugentudorache, mariusconstantin |
| Keywords | vue.js, vue-easy-polls, vue, votes, vote, poll, polls, opinion polling, vue voting component, vue polling component, opinion voting, creating polls vue component |

## Links

- npm: https://www.npmjs.com/package/@updivision/vue-easy-polls
- Repository: https://github.com/updivision/vue-easy-polls
- Homepage: https://github.com/updivision/vue-easy-polls#readme
- Issues: https://github.com/updivision/vue-easy-polls/issues
- npm.io page: https://npm.io/package/@updivision/vue-easy-polls

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.18.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-05-30
- 1.0.4 — 2018-07-24
- 1.0.3 — 2018-07-24
- 1.0.2 — 2018-07-24
- 1.0.1 — 2018-07-24
- 1.0.0 — 2018-07-24

## README

# vue-easy-polls

> A Vue.js component for creating polls, voting and showing results. It’s easy to implement and easy to customize.

### Demo
See live demo [here](https://updivision.github.io/vue-easy-polls/)

## Prerequisites
- [Vue.js 2](https://vuejs.org/)
- [Axios](https://github.com/axios/axios)

## Installing

Using npm:

```bash
$ npm i @updivision/vue-easy-polls
```

### Example (NPM)

```vue
<template>
  <div id="app">
    <poll-creator savePollUrl="post-poll-url" />
    <hr>
    <poll-view getPollUrl="get-poll-url" saveVoteUrl="post-save-url"/>
  </div>
</template>

<script>
import {PollView, PollCreator} from '@updivision/vue-easy-polls'

export default {
    name: 'app',
    components: {
        PollCreator,
        PollView
    }
}
</script>
```

## Customize

```vue
<template>
  <div id="app">
    <poll-creator savePollUrl="post-poll-url" />
    <hr>
    <poll-view getPollUrl="get-poll-url" saveVoteUrl="post-save-url"/>
  </div>
</template>

<script>
import {PollView, PollCreator} from '@updivision/vue-easy-polls'

export default {
    name: 'app',
    components: {
        PollCreator,
        PollView
    }
}
</script>

<style lang="scss">
//...
$poll-primary: red;
$poll-secondary: yellow;
@import "@updivision/vue-easy-polls/src/assets/poll.scss";
//...
</style>

```

## Poll Attributes
#### PollCreate.vue

| Attribute | Description | Accepted values | HTTP verb | Required | Default |
| --------- | ----------- | --------------- | --------- | -------- | ------- |
| savePollUrl | This is the endpoint where your server will save the current poll | URL (string) | POST | required | - |

#### PollView.vue

| Attribute | Description | Accepted values | HTTP verb | Required | Default |
| --------- | ----------- | --------------- | --------- | -------- | :-----: |
| saveVoteUrl | This is the endpoint where your server will save the vote for the current poll | URL (string) | POST | required | - |
| getPollUrl | This is the endpoint from where your server will return the poll | URL (string) | GET | required | - |

## Database schema example
![Database schema](https://github.com/updivision/vue-easy-polls/blob/master/demo/schema.png?raw=true "Database schema")

## Screenshots
![vue-easy-polls](https://github.com/updivision/vue-easy-polls/blob/master/demo/vue-easy-polls.png?raw=true "vue-easy-polls")

![vue-easy-polls](https://github.com/updivision/vue-easy-polls/blob/master/demo/vue-easy-polls-2.png?raw=true "vue-easy-polls")

![vue-easy-polls](https://github.com/updivision/vue-easy-polls/blob/master/demo/vue-easy-polls-3.png?raw=true "vue-easy-polls")

## Contributors
- [Stanciu Gabriel](https://github.com/gabistanciu)

## LICENSE
[MIT License](https://github.com/updivision/vue-easy-polls/blob/master/LICENSE)

---
_Source: https://npm.io/package/@updivision/vue-easy-polls · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
