Skip to content

ecliptic/reason-events-api

Repository files navigation

Reason Events API

This is an Express-based application server written in ReasonML. It uses GraphQL via Postgraphile to communicate with the client.

Installation

Dependencies

Install dependencies with Yarn:

$ yarn

This should install the ReasonML and BuckleScript platform to compile the code to JavaScript.

Local Database

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;'

Running the Application

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

Architecture

Express

The core of the application is an Express server with some middleware:

About

Demo backend implemented with Mnstr and Postgraphile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published