Skip to content

blockmatic-icebox/powerstack-antelope

Repository files navigation

PowerStack Hasura

GraphQL Engine for PowerStack projects.

⚡️ PowerStack: a powerful fullstack development framework.

Disclaimer: This is a work in progress. Will be finalized soon.

General

Hasura service is responsible for

  • Database migrations.
  • GraphQL API Gateway.
  • Access control.

Requirements

Hasura Fundamentals

Getting Started

git clone git@github.com:blockmatic/powerstack-hasura.git
cd powerstack-hasura
cp .env-sample .env # and edit the environment variables
task build
task run

Ref Hasura Environment Variables

Directory Structure

.
├── metadata/ ........................................... hasura metadata
├── migrations/ ......................................... hasura migrations
├── config.yaml.......................................... hasura config
├── taskfile.yaml........................................ dev tasks config
└── .env ................................................ environment variables ([ hasura variables] )

Docker

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

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

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

# Print app output
docker logs -f powerstack-hasura

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

Database Migrations

Hasura Database Migrations enable a rock-solid deployment.

Deployment

...

Contributing

We use a Discussions Board to gather thoughts, bug reports and feature requests from the community.

Follow the standard Github Flow for PRs. Contributing Guidelines.

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