Skip to content
📊 ✔️ the participation view (viz and voting)
Branch: master
Clone or download
Latest commit 628baae Jan 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api fix demo mode Feb 21, 2018
api_examples add example response Aug 13, 2014
bin add copyright/AGPL headers Nov 29, 2016
css assign copyright to the authors Jan 9, 2019
js assign copyright to the authors Jan 9, 2019
tasks initial commit, partway through port from lumbar to require Sep 24, 2013
vis2 use #0090ff for blue Oct 12, 2017
.babelrc remove deprecated hot reloading package Sep 2, 2018
.bowerrc continuing with overhaul Sep 24, 2013
.editorconfig continuing with overhaul Sep 24, 2013
.gitignore Revert "adding config file" Jan 14, 2019
.jshintrc lint config Nov 17, 2013
CONTRIBUTING.md add CONTRIBUTING.md Nov 29, 2016
Dockerfile revert and update Jan 14, 2019
Gruntfile.js assign copyright to the authors Jan 9, 2019
LICENSE rename license for GitHub Dec 2, 2016
README.md Update documentation to clarify relationship between client participa… Sep 3, 2018
bower.json dockerfile Jan 11, 2019
d3.v4.min.js TEMP remove this commit once we remove old d3 May 31, 2017
deployPreprod remove .env_always_tempate - use polis.config.template.js instead Nov 24, 2017
deployPreprodUnminified remove .env_always_tempate - use polis.config.template.js instead Nov 24, 2017
deploy_TO_PRODUCTION remove .env_always_tempate - use polis.config.template.js instead Nov 24, 2017
doInstall add doInstall Oct 3, 2017
gulpfile.js assign copyright to the authors Jan 9, 2019
index.html move facebook app id to config Feb 27, 2018
notes.md refactoring conversation view completely Jul 10, 2015
package.json update bower version Sep 2, 2018
polis.config.template.js Update documentation to clarify relationship between client participa… Sep 3, 2018
sparklines.svg check in dummy sparkines.svg to prevent http cross-origin request Feb 13, 2014
sublime-project adding sublime-project Feb 11, 2014
unsupportedBrowser.html creating unsupported browser html page Oct 15, 2013
webpack.config.dev.js remove deprecated hot reloading package Sep 2, 2018
webpack.config.js deployment for new vis May 31, 2017
webpack.config.unminified.js add unminified preprod build option May 31, 2017
x move domain whitelist to polis.config.js Nov 16, 2017

README.md

Polis Client/Participation View

This is the code for the view that conversation participants see.

Development

Install with npm and bower (npm install --global bower):

npm install
bower install

There is a polis.config.template.js file which will have to be copied over to polis.config.js, and edited as appropriate.

To run: ./x

The dev server should now be running at localhost:5001 (or whatever port you set in your polis.config.js) So... you might think that you should now be able to go to this address and see the polis interface. However, this is not the case. Because of preprocessing required of the index.html file before it will load (including the embedding of the initial data payload in the html), it is necessary that the application be accessed through a running instance of the your polisServer (by default localhost:5000).

Also note that the polisServer process will need to know via its config the port on which this, the participation client code, will be available. If you don't mess with any of the default port settings you shouldn't have to worry about all this nonsense. Just know that if you do, you will then need to update these port variables in multiple places.

Troubleshooting

If you get an error running ./x that looks something like Error: watch /home/csmall/code/polisClientParticipation/js ENOSPC trying to run, this may be because your system has too many watches active. If you see this, try running echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p to increase the number of available watches on your system.

Deployment

Before pushing to s3: gulp dist

Then use the deployToPreprod script to deploy to your preprod server to test. Then deploy_TO_PRODUCTION when you are ready.

Other Requirements

For gulp-ruby-sass to enable sourcemap options, it requires Sass >= 3.3.0

You can’t perform that action at this time.