Skip to content

blockmatic-icebox/powerstack-bitcoin

Repository files navigation

PowerStack Apollo

Custom mutations server for PowerStack backends

⚡️ PowerStack: a powerful fullstack development framework.

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

General

https://www.apollographql.com/docs/apollo-server/api/apollo-server/

Requirements

Directory Structure

.
├── src/ ................................................ source code
├── taskfile.yaml........................................ dev tasks config
└── .env ................................................ environment variables ([ hasura variables] )

NodeJS

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3301 with your browser to see the result.

You can start editing the page by modifying app/routes/index.tsx. The page auto-updates as you edit the file.

Commands

  • dev: runs your application on localhost:3301
  • build: creates the production build version
  • start: starts a simple server with the build production code

Docker

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

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

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

# Print app output
docker logs -f powerstack-apollo

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

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