GithubHelp home page GithubHelp logo

discohands's Introduction

Discohands

Democratically and anonymously choose topics to discuss.

Dependencies

Node dependencies can be installed with npm install. Discohands also depends on these services:

Configuration

Discohands is configured through environment variables, or by a config.json file in the same directory as app.js.

  • NODE_ENV: Run in production or development mode. Default development.
  • SESSION_SECRET: Secret key for stored sessions. Default "keyboard cat".
  • MAXIMUM_TOPIC_AGE_DAYS: Optional number of days after which a topic is omitted. Default is no omission due to topic age.
  • REDIS_URL or REDISCLOUD_URL: Redis connection URL. Default redis://localhost:6379.
  • MONGODB_URI or MONGOLAB_URI: MongoDB connection URI. Default mongodb://localhost/discohands.
  • ROOT_URL: Root URL Discohands will be available at. Used for OAuth callback URL. Default http://localhost:8080.
  • AUTHORIZED_DOMAIN: Domain emails must be from in order to log in. Default gmail.com.
  • GOOGLE_CLIENT_ID: Google OAuth 2.0 client ID.
  • GOOGLE_CLIENT_SECRET: Google OAuth 2.0 client secret.

Google OAuth 2.0 credentials can be obtained through the Google Developers Console by creating a new project, then creating a client ID under "APIs & auth", "Credentials". The redirect URIs should be set to the Discohands root URL /auth/google/callback.

Development

node app

Google OAuth 2.0 credentials are required in development. http://localhost/auth/google/callback can be configured as a valid redirect URI in Google Developers Console.

Deployment

Discohands can easily be deployed to Heroku with Redis Cloud and MongoDB Atlas.

License

Copyright © 2014 Busbud, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

discohands's People

Contributors

causal-agent avatar cdnbacon avatar schlenks avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wangxuqi

discohands's Issues

Create visible voting cutoff

Some topics don't receive enough votes to be discussed, but it's hard to tell what that threshold is. It should be made explicit.

Add an env var to capture the threshold, and grey out topics that haven't received enough votes. Also, consider expiring topics that are too old automatically.

image

Allow submitting topics with identity revealed

Some people submitting topics want to be identified instead of submitting anonymously.

Deliver in two phases

1. Update instructions on topic form

Add your name at the end of your question if you want to be identified.

2. Update model to consider how identity of topic submitter is treated

  1. Deliver UI affordance on topic form to update model
  2. Represent if topic was submitted anonymously
  3. Update topic display to show non-anonymous topic submitter as appropriate

Comment threads

Allow people to add comments.

Why?

  1. can ask clarifying questions
  2. can add more context
  3. can have a discussion before the meeting
  4. can answer questions that didn't get enough votes

Omit stale topics

Topics past a certain threshold age (45 day default) should not be displayed for voting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.