An open API service indexing awesome lists of open source software.

https://github.com/anisjonischkeit/reason-hasura-auth-server

A GraphQL server written in ReasonML that authenticates a user in Hasura
https://github.com/anisjonischkeit/reason-hasura-auth-server

authentication docker docker-compose graphql hasura reasonml

Last synced: 2 months ago
JSON representation

A GraphQL server written in ReasonML that authenticates a user in Hasura

Awesome Lists containing this project

README

          

# Reason Native Hasura Authentication Server

This is a sample that shows how a simple Reason Native authentication server for Hasura could look. Code can be found in `auth-server/lib`

## Running the server

Terminal 1

```
cd auth-server
esy start
```

Terminal 2

```
cd hasura
docker-compose up -d # this starts hasura in the background, stop it with docker-compose down
scripts/run-migrations.sh
scripts/start-server.sh
```

Now go to http://localhost:9695/

NOTE: Make sure to start the auth server before you start hasura since hasura depends on it being up.