Ocsigen Start demo app

Database request

This page shows signed-up users fetched from the database.

Have a look at the source code to see how to make a DB request with PGOCaml.

We are using Ot_spinner to display the list, which means that, in the case the page is generated client-side, the page will be displayed immediately with a spinner, that will be replaced by the contents when ready. The code contains a 2s sleep to demonstrate the spinner.