Coder Social home page Coder Social logo

hichana / flow-playground-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onflow/flow-playground-api

0.0 0.0 0.0 891 KB

Flow Playground back-end app ๐Ÿคนโ€โ™‚๏ธ

Home Page: https://onflow.org

License: Apache License 2.0

Dockerfile 0.44% Makefile 0.71% Go 98.75% Shell 0.10%

flow-playground-api's Introduction

Flow Playground API

Generating code from GQL

This project uses gqlgen to generate GraphQL server code from a GQL schema file.

make generate

Testing

make test

Running the server

make run

When running locally, the GraphQL playground is available at http://localhost:8080/.

Running with Datastore emulator

Install the Google Cloud Datastore Emulator.

Start the Datastore emulator:

gcloud beta emulators datastore start

In a separate process, run the server with the run-datastore target:

make run-datastore

Configuration options

The following environment variables can be used to configure the API. Default values are shown below:

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=false

FLOW_LEDGERCACHESIZE=128
FLOW_STORAGEBACKEND="memory"

FLOW_DATASTORE_GCPPROJECTID
FLOW_DATASTORE_TIMEOUT="5s"

flow-playground-api's People

Contributors

10thfloor avatar janezpodhostnik avatar kay-zee avatar maxstalker avatar mrbrianhobo avatar psiemens avatar turbolent avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.