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

https://github.com/github0013/graphql-ruby-bare-min


https://github.com/github0013/graphql-ruby-bare-min

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# graphql-ruby-bare-min

1. have docker-compose installed.
1. may not work on windows docker-compose (didn't test)
1. this is a sample repo of graphql-ruby + apollo + graphql-code-generator
1. run docker-compose up
1. then go to the server's address

```bash
cd graphql-ruby-bare-min
docker-compose up
open http://your_server_name/
```

```rb
# to trigger
# rails c
AppSchema.subscriptions.trigger("sub_test", {}, {results: Time.now.to_i })
```