curl https://raw.github.com/0x20h/trex/master/bin/trex > trex
chmod u+x trex
./trex [record|replay|convert] -h
./trex record my_session.json
# ...
# record your session, when finished:
exit
In your terminal:
./trex replay my_session.json
Show the session on your webpage:
# ...
<body>
<head>
<style rel="stylesheet" href="css/jquery.trex.min.css">
</head>
<div class="trex" data-session="/my_session.json"></div>
...
<script src="http://code.jquery.com/jquery-2.0.2.min.js"></script>
<script src="jquery.trex.min.js"></script>
<script type="text/javascript">
$(function() {
$(".trex").trex({
speed: 1,
auto_start: false
});
})
</script>
npm install
bin/grunt