Skip to content

blockmatic-icebox/powerstack-explorer

Repository files navigation

PowerStack GraphiQL Explorer

PowerStack GraphiQL Explorer

https://explorer.powerstack.xyz

Credits

This project is a fork of hasura/graphiql-online

Environment Variables

This app uses a few environment variables which are required for development. The production build uses values directly present in index.html serving this app.

We use dotenv for setting environment variables for development. Create a .env file in the root directory (wherever package.json is) and set the following values. Replace accordingly for testing.

PORT=3000
NODE_ENV=development
GRAPHQL_ENDPOINT=https://api.powerstack.xyz/v1/graphql
HEADER_STRING='{}'
VARIABLE_STRING='{}'
QUERY_STRING=''

Docker

# Build the image
docker build -t powerstack-explorer:local .

# Start a container
docker run --name powerstack-explorer --env-file .env -p 8080:8080 -d powerstack-explorer:local

# Get container ID
docker ps -aqf "name=^powerstack-explorer$"

# Print app output
docker logs -f powerstack-explorer

# Stop, start, restart, kill
docker stop powerstack-explorer
docker start powerstack-explorer
docker restart powerstack-explorer
docker kill powerstack-explorer

Contributing

Read the contributing guidelines for details.

Blockmatic

Blockmatic is building a robust ecosystem of people and tools for the development of blockchain applications.

blockmatic.io

Blockmatic Twitter Blockmatic Facebook Blockmatic Github