A detail explanation of this example is available at Getting started with atdgen and bucklescript
esy
yarn
yarn build
```cd
## Run it
$ echo "[]" > events.json $ node src/cli.bs.js add louis [email protected] $ node src/cli.bs.js print === OCaml/Reason Meetup! summary === date: Tue, 11 Sep 2018 15:04:13 GMT access: public host: louis [email protected] guests: 1 $ node src/cli.bs.js add bob [email protected] $ node src/cli.bs.js print === 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" } ]