This is an Express-based application server written in ReasonML. It uses GraphQL via Postgraphile to communicate with the client.
Install dependencies with Yarn:
$ yarn
This should install the ReasonML and BuckleScript platform to compile the code to JavaScript.
To use Postgres locally:
$ createuser reason-events
$ createdb reason-events -O reason-events
# Only on your local machine:
$ psql -U postgres postgres -c 'ALTER USER "reason-events" WITH SUPERUSER;'
To run in development, use a bsb
watcher on a separate tab first:
$ yarn build.re.watch
Then run the server in development mode:
$ yarn dev
The core of the application is an Express server with some middleware: