https://github.com/github0013/graphql-ruby-bare-min
https://github.com/github0013/graphql-ruby-bare-min
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/github0013/graphql-ruby-bare-min
- Owner: github0013
- Created: 2020-04-04T05:45:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T18:15:46.000Z (over 3 years ago)
- Last Synced: 2025-08-13T02:50:59.280Z (11 months ago)
- Language: Ruby
- Size: 316 KB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
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 })
```