git clone https://github.com/stever/zxplay-api-zxbasic.git
cd zxplay-api-zxbasic/
virtualenv venv
source ./venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload
docker build -t ghcr.io/stever/zxplay-api-zxbasic .
docker push ghcr.io/stever/zxplay-api-zxbasic
docker run \
--env=API_URL=https://zxplay.org/api/v1/graphql \
--publish=80:8000 \
--detach=true \
--name=zxplay-api-zxbasic \
ghcr.io/stever/zxplay-api-zxbasic
Tick option to "Forward client headers to webhook".
type Mutation {
compile (
basic: String!
): CompileResult
}
type CompileResult {
base64Encoded: String!
}
http://zxbasic/compile/