Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

A Rocket.Chat App slash command to create a poll

License

Notifications You must be signed in to change notification settings

p0457/rocket.chat.app-poll

 
 

Repository files navigation

Rocket.Chat Poll App

A Rocket.Chat App slash command to create a poll

Deprecated

This project will no longer be maintained by me, I have retired my Rocket.Chat server in favor of a Matrix Synapse server.

Compatibility table

Poll Version Minimum Rocket.Chat Version
v1.x 0.74.1
v2.x 3.0.0

Installing

Rocket.Chat Poll App is provided via Rocket.Chat Marketplace https://rocket.chat/marketplace . To install it on your Rocket.Chat server, go to the Admin area, then Marketplace and search for Poll, click Install and you're ready to go.

How to use it

Use the slash command to create a poll:

/poll What is your favorite color?

Fill the form:

image

The following poll will be created:

image

Contributing

You'll need to set up the Rocket.Chat Apps dev environment, please see https://rocket.chat/docs/developer-guides/developing-apps/getting-started/

To install the using the command line, you have to turn on the setting Enable development mode on the Rocket.Chat server under Admin > General > Apps.

Then you can clone this repo and then:

npm install
rc-apps deploy

Follow the instructions and when you're done, the app will be installed on your Rocket.Chat server.

Docker

A Dockerfile and docker-compose are provided.

Build the docker image and run it to deploy to your server: docker build -t rocketchatapp_poll . && docker run -it --rm -e URL=YOUR_SERVER -e USERNAME=YOUR_USERNAME -e PASSWORD=YOUR_PASSWORD rocketchatapp_poll

Build the docker image and run docker-compose to deploy to your server: docker build -t rocketchatapp_poll . && docker-compose run --rm -e URL=YOUR_SERVER -e USERNAME=YOUR_USERNAME -e PASSWORD=YOUR_PASSWORD rocketchatapp_poll

Languages

  • TypeScript 97.5%
  • Dockerfile 2.5%