Skip to content

zxplay/zxcoder-api-z88dk

Repository files navigation

ZX Play API for Z88DK

Development start

Initial project setup

git clone https://github.com/stever/zxplay-api-z88dk.git
cd zxplay-api-z88dk/
virtualenv venv
source ./venv/bin/activate
pip install -r requirements.txt

Run app

uvicorn app.main:app --reload

Docker Build & Push

docker build -t ghcr.io/stever/zxplay-api-z88dk .
docker push ghcr.io/stever/zxplay-api-z88dk

Run Locally

docker run \
  --publish=80:8000 \
  --detach=true \
  --name=zxplay-api-z88dk \
  ghcr.io/stever/zxplay-api-z88dk

Hasura Deployment Configuration

Compile Action Service

Tick option to "Forward client headers to webhook".

Action definition

type Mutation {
  compileC (
    code: String!
  ): CompileResult
}

New types definition

type CompileResult {
  base64Encoded: String!
}

Handler

http://z88dk/compile/