Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vsivsi/meteor-job-collection-playground-worker
- Owner: vsivsi
- License: other
- Created: 2015-04-23T23:57:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T17:50:20.000Z (over 8 years ago)
- Last Synced: 2024-10-08T01:41:37.677Z (30 days ago)
- Language: CoffeeScript
- Size: 11.7 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```