Web interface for crowd workers.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gulp Pybossa fixxessese Mar 22, 2016
lib
src Add meta tag for mobile clients Mar 22, 2016
.gitignore Fix skipanswer and skiprating in query params, radiochange in ratingv… Feb 8, 2016
Dockerfile rename localplatform to index Mar 17, 2016
LICENSE Add license and gitignore Jan 29, 2016
README.md
gulpfile.js Browserify, split views in templates, bundle Feb 8, 2016
package.json Fix params Feb 8, 2016

README.md

Worker UI

Worker interface to use with CrowdControl.

Installation

Native

# Install gulp as global binary
sudo npm install -g gulp

# Clone git repository and change directory
git clone https://github.com/coolcrowd/worker-ui && cd worker-ui

# Install dependencies using npm
npm install

# Build default version (human readable output)
gulp production

# Configure your web server to serve ./build (see development section for alternative)

Using Docker

# Clone git repository and change directory
git clone https://github.com/coolcrowd/worker-ui && cd worker-ui

docker build -t worker-ui .
docker run -e WS_URL=<WorkerService-URL> worker-ui

# Build is now ready in $PWD/build

Development

During development, use gulp without any arguments to enter development mode. Files are automatically watched and rebuilt on change. Updated stylesheets will be injected automatically, no page reload required.

To host the files from ./build use gulp browserSync.

Usage

The worker UI is bundled in the worker_ui.js and exports the object WorkerUI. See here for sample usage.