A detail explanation of this example is available at Getting started with ATD and Melange
From the root folder:
make install
dune build @example
$ echo "[]" > events.json
$ node example/src/example/example/src/cli.js add louis [email protected]
$ node example/src/example/example/src/cli.js print meetup
=== OCaml/Reason Meetup! summary ===
date: Tue, 11 Sep 2018 15:04:13 GMT
access: public
host: louis <[email protected]>
guests: 1
$ node example/src/example/example/src/cli.js add bob [email protected]
$ node example/src/example/example/src/cli.js print meetup
=== OCaml/Reason Meetup! summary ===
date: Tue, 11 Sep 2018 15:04:16 GMT
access: public
host: bob <[email protected]>
guests: 1
=== OCaml/Reason Meetup! summary ===
date: Tue, 11 Sep 2018 15:04:13 GMT
access: public
host: louis <[email protected]>
guests: 1
$ cat events.json
[
{
"guests": [
{
"email": "[email protected]",
"name": "bob"
}
],
"date": 1536678256177,
"host": {
"email": "[email protected]",
"name": "bob"
},
"name": "OCaml/Reason Meetup!",
"access": "Public"
},
{
"guests": [
{
"email": "[email protected]",
"name": "louis"
}
],
"date": 1536678253790,
"host": {
"email": "[email protected]",
"name": "louis"
},
"name": "OCaml/Reason Meetup!",
"access": "Public"
}
]