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
- Host: GitHub
- URL: https://github.com/anisjonischkeit/reason-hasura-auth-server
- Owner: anisjonischkeit
- License: mit
- Created: 2019-07-04T22:35:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-16T19:29:51.000Z (over 6 years ago)
- Last Synced: 2026-03-22T15:30:27.847Z (4 months ago)
- Topics: authentication, docker, docker-compose, graphql, hasura, reasonml
- Language: OCaml
- Homepage:
- Size: 130 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.