How do I run jqplay locally?
I've downloaded the code and followed the readme and have Postgres, node and go installed on macOS I ran ./bin/setup and ./bin/start but get some errors
i.e.
cmd/jqplay/main.go:4:2: cannot find package "github.com/jingweno/jqplay/config" in any of: /usr/local/go/src/github.com/jingweno/jqplay/config (from $GOROOT) ~/go/src/github.com/jingweno/jqplay/config (from $GOPATH)
Does it need a docker command, grunt command ??
For my side, I just added the following bash script called jqplay.sh in local folder using docker-compose file :
cat << EOF | tee jqplay.sh
#!/bin/bash
if [[ "\$1" = "down" ]]; then
cd "\$(dirname "\${BASH_SOURCE}")" && docker-compose down
else
cd "\$(dirname "\${BASH_SOURCE}")" && docker-compose up
fi
EOF
chmod +x jqplay.sh
Then I have added the location to my PATH in my profile so I can :
- run
jqplay.shto start locally without force rebuilding the docker images (given mapping is to all interfaces - this is accessible on http://localhost:8080 or from other computers on my network http://<<anyOfMyIPOrFQDN>>:8080) - run
jqplay.sh downto delete the containers
@Claire is this still an issue? If you're using docker, you should be able to clone this repo and run make start which is the equivalent of running docker-compose up --build --force-recreate and then jqplay should be available at http://localhost:8080/. This will provide the latest versions of jqplay and Postgres.