https://github.com/onflow/flow-playground-api
Flow Playground back-end app ๐คนโโ๏ธ
https://github.com/onflow/flow-playground-api
blockchain flow golang
Last synced: about 2 months ago
JSON representation
Flow Playground back-end app ๐คนโโ๏ธ
- Host: GitHub
- URL: https://github.com/onflow/flow-playground-api
- Owner: onflow
- License: apache-2.0
- Created: 2020-09-03T23:46:28.000Z (almost 5 years ago)
- Default Branch: v2
- Last Pushed: 2024-10-09T06:26:39.000Z (9 months ago)
- Last Synced: 2025-04-05T04:03:15.128Z (3 months ago)
- Topics: blockchain, flow, golang
- Language: Go
- Homepage: https://onflow.org
- Size: 2.32 MB
- Stars: 11
- Watchers: 34
- Forks: 9
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: .github/security.yaml
Awesome Lists containing this project
README
# Flow Playground API
## Generating code from GQL
This project uses [gqlgen](https://github.com/99designs/gqlgen) to generate GraphQL server code from a GQL schema file.
```shell script
make generate
```## Testing
```shell script
make test
```## Running the server
```shell script
make run
```When running locally, the GraphQL playground is available at [http://localhost:8080/](http://localhost:8080/).
### Configuration options
The following environment variables can be used to configure the API. Default values are shown below:
```shell script
FLOW_PORT=8080
FLOW_DEBUG=false
FLOW_ALLOWEDORIGINS="http://localhost:3000"FLOW_SESSIONAUTHKEY="428ce08c21b93e5f0eca24fbeb0c7673"
FLOW_SESSIONMAXAGE="157680000s"
FLOW_SESSIONCOOKIESSECURE=true
FLOW_SESSIONCOOKIESHTTPONLY=true
FLOW_SESSIONCOOKIESSAMESITENONE=falseFLOW_LEDGERCACHESIZE=128
FLOW_STORAGEBACKEND="memory"
```