Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vsivsi/meteor-job-collection-playground-worker

Sample node.js worker that will connect to a running jcPlayground
https://github.com/vsivsi/meteor-job-collection-playground-worker

Last synced: 19 days ago
JSON representation

Sample node.js worker that will connect to a running jcPlayground

Awesome Lists containing this project

README

        

### jcPlaygroundWorker

This is a sample app demonstrating a standalone plain node.js worker that can connect to the Meteor hosted [job collection playground server](http://jcplayground.meteorapp.com) and work on jobs.

To install:

```
git clone https://github.com/vsivsi/meteor-job-collection-playground-worker.git jcpWorker
cd jcpWorker
npm install
```

To run (unauthenticated) simply: `coffee worker.coffee`

To run as an authenticated user:

First, visit [https://jcplayground.meteorapp.com](https://jcplayground.meteorapp.com) and setup an account.

Now authenticate and stash the login credentials in the environment:
```
# Type the email and password for the account you created above when prompted
export METEOR_TOKEN=$(./node_modules/ddp-login/bin/ddp-login --host jcplayground.meteorapp.com --port 443 --ssl)
```

Now when the worker starts it will authenticate using the token from the environment to work on your private jobs:
```
coffee worker.coffee
```