Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I run jqplay locally? #103

Open
Claire opened this issue Sep 18, 2020 · 2 comments
Open

How do I run jqplay locally? #103

Claire opened this issue Sep 18, 2020 · 2 comments

Comments

@Claire
Copy link

Claire commented Sep 18, 2020

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

@jguay
Copy link
Contributor

jguay commented Sep 2, 2022

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://<>:8080)
  • run jqplay.sh down to delete the containers

@loganmarchione
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@loganmarchione @Claire @jguay and others