Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmeasday/meteor-recorder
https://github.com/tmeasday/meteor-recorder
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tmeasday/meteor-recorder
- Owner: tmeasday
- Created: 2012-09-12T03:54:17.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-18T23:33:58.000Z (over 12 years ago)
- Last Synced: 2024-10-03T19:43:18.082Z (3 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Meteor Recorder
===============This is a work in progress, feel free to give it a go!
To see it in action, head to [Sketch](http://sketch.meteor.com)
Install
-------```bash
mrt add recorder
```Usage
-----To record, start the `Recorder` with the names of the collections that you are interested in:
```js
Recorder.start(Paths, 'Points');
```To stop, either `Recorder.cancel()`, or call
```js
Recorder.save('my_recording')
```When you want to re-run your recording, simply call
```js
Recorder.replay('my_recording');
```And the same set of changes should happen to the collections recorded.
Alternatively, you can run your recording from the commandline, for exampletake a look at `bin/replayer.js`:
```bash
$ bin/replayer.js my_recording
```Have a nice day.
Tips and Tricks
---------------Or you'll have to make sure that the record can find your collections. For now that means they'll need to be globally available in the `window` object:
```js
Paths = new Meteor.Collection('paths');
```Ensure the recorder has write access to the `Recordings` collection. ie. if you are on `auth`, do something like:
```js
Recordings.allow({
insert: function() { return true; }
})
```TODO
----
- Find somewhere to store collections
- More exciting replayer?
- Deal with changes to existing objects, not just new ones