Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stradivario/graphql-runner
https://github.com/stradivario/graphql-runner
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stradivario/graphql-runner
- Owner: Stradivario
- Created: 2020-04-17T06:51:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:40:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T18:37:52.888Z (2 months ago)
- Language: TypeScript
- Size: 76.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @graphql/runner
#### Download binary
```bash
wget https://github.com/Stradivario/graphql-runner/raw/master/dist/runner-linux
```#### Give it permission to execute
```bash
chmod +x runner-linux
```#### Start it
```bash
./runner-linux
``````bash
./dist/runner-linux --wss ws://localhost:9000/subscriptions --runner-type runner
``````graphql
mutation {
execute(
cmd: NGINX_SAVE_CONFIG
args: {
path: "./src"
domain: "my.graphql.com"
subDomain: "pesho"
ip: "123"
}
) {
code
data
error
}
}
``````graphql
mutation {
execute(
cmd: NGINX_GENERATE_CONFIG
args: { domain: "my.graphql.com", subDomain: "pesho", ip: "123" }
) {
code
data
error
}
}
``````graphql
mutation {
simulateNginxConfigGeneration(
payload: {
domain: "my.graphql.com"
subDomain: "pesho"
ip: "123"
}
) {
config
}
saveNginxConfiguration(
path: "./src"
payload: {
domain: "my.graphql.com"
subDomain: "pesho"
ip: "123"
}
) {
config
}
removeNginxConfiguration(
path: "./src"
payload: { subDomain: "pesho" }
) {
config
}
}
``````bash
./runner-linux --wss wss://my-graphql-server/subscriptions --runner-type runner --secret secret --label mylabel --systemctl true --systemctl-name runner --systemctl-description 'Graphql pubsub runner' --send-response-to-server
```