jqplay icon indicating copy to clipboard operation
jqplay copied to clipboard

How do I run jqplay locally?

Open Claire opened this issue 5 years ago • 2 comments

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 ??

Claire avatar Sep 18 '20 21:09 Claire

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.sh to 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 down to delete the containers

jguay avatar Sep 02 '22 09:09 jguay

@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.

loganmarchione avatar May 12 '23 02:05 loganmarchione