Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 2.54 KB

README.md

File metadata and controls

86 lines (58 loc) · 2.54 KB

Niftnory GraphiQL Explorer

Niftnory GraphiQL Explorer

https://niftnory.bitcash.org

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://graphql.api.staging.niftory.com
HEADER_STRING='{}'
VARIABLE_STRING='{}'
QUERY_STRING=''

Docker

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

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

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

# Print app output
docker logs -f niftnory-explorer

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

Contributing

Read the contributing guidelines for details.

Credits

This project is a fork of hasura/graphiql-online

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