Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmuellr/eventsource-tester
node.js app to test EventSource
https://github.com/pmuellr/eventsource-tester
Last synced: about 1 month ago
JSON representation
node.js app to test EventSource
- Host: GitHub
- URL: https://github.com/pmuellr/eventsource-tester
- Owner: pmuellr
- Created: 2014-08-21T13:31:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-28T17:51:52.000Z (over 10 years ago)
- Last Synced: 2024-04-09T21:04:44.905Z (9 months ago)
- Language: JavaScript
- Size: 207 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
EventSource-tester
================================================================================A node.js server that tests out
[w3 Server-Sent Events](http://dev.w3.org/html5/eventsource/)
aka
[SSE](http://www.html5rocks.com/en/tutorials/eventsource/basics/)
aka
[EventSource](https://developer.mozilla.org/en-US/docs/Web/API/EventSource)
.running locally
================================================================================* run `git clone` to get the code
* run `cd` to change directory into the code
* run `npm install` to install node dependencies
* run `node app` to start the application
* in a browser, visit the URL printed to the console when the application startsThe browser window will display events occurring around the `EventSource` it
is accessing.running on Cloud Foundry
================================================================================* copy `manifest-sample.yml` to `manifest.yml`
* edit `manifest.yml`, change the `host` property to something unique
* run `cf push`
* shortly after the `cf push` starts, open a new terminal and run
`cf logs es-tester`
* in a browser, visit the URL printed to the console when the application startsSame browser window as when running locally.
hacking
================================================================================If you want to modify the source to play with it, you'll also want to have the
`jbuild` program installed.To install `jbuild` on Windows, use the command
npm -g install jbuild
To install `jbuild` on Mac or Linux, use the command
sudo npm -g install jbuild
The `jbuild` command runs tasks defined in the `jbuild.coffee` file. The
task you will most likely use is `watch`, which you can run with the
command:jbuild watch
When you run this command, the application will be built from source, the server
started, and tests run, etc. When you subsequently edit and then save one of
the source files, the application will be re-built, the server re-started, and
the tests re-run. For ever. Use Ctrl-C to exit the `jbuild watch` loop.You can run those build, server, and test tasks separately. Run `jbuild`
with no arguments to see what tasks are available, along with a short
description of them.license
================================================================================Apache License, Version 2.0