jqplay is a playground for jq.
To develop jqplay
you must have the following tools:
Go development environment
Node.js
yarn
You must have a PostgreSQL database running.
You must have a MySQL or MariaDB database running.
Running make build
will build the jqplay
binary and the frontend assets.
The following environment variables are required to run jqplay
:
DATABASE_URL
- The database URL to connect to, in the format postgres://user:pass@host:port/database
.
DATABASE_DRIVER
- The database driver to use, this must be set to postgres
.
You are able to make use of the docker-compose-postgres.yml
file to deploy jqplay
with a database meaning little setup is required with the following command:
docker-compose -f docker-compose-postgres.yml up -d
It is recommended that you change the database credentials in the docker-compose-postgres.yml
file to something more secure.
If you already have a postgreSQL database running, you can make use of my public Docker image to deploy jqplay
with the following command, replacing the DATABASE_URL
environment variable with your database credentials:
docker run -d -p 8080:8080 -e DATABASE_URL="postgres://jqplay-user:jqplay-pass@postegresql-host/jqplay-db?sslmode=disable" DATABASE_DRIVER="postgres" registry.jackoxi.systems/public-images/jq-play-server:latest
If you have a postgreSQL running, you can make use of the Dockerfile
to deploy jqplay
with the following command, replacing the DATABASE_URL
environment variable with your database credentials:
docker build -t jqplay --build-arg DATABASE_URL="postgres://jqplay-user:jqplay-pass@postegresql-host/jqplay-db?sslmode=disable" DATABASE_DRIVER="postgres".
docker run -d -p 8080:8080 jqplay
If you have a postgreSQL database running, you can make use of the jqplay binary to deploy jqplay
with the following command, replacing the DATABASE_URL
environment variable with your database credentials:
DATABASE_URL="postgres://jqplay-user:jqplay-pass@postegresql-host/jqplay-db?sslmode=disable" DATABASE_DRIVER="postgres"./jqplay
The following environment variables are required to run jqplay
:
DATABASE_URL
- The database URL to connect to, in the format user:pass@tcp(host:port)/database
.
DATABASE_DRIVER
- The database driver to use, this must be set to mysql
.
You are able to make use of the docker-compose-mysql.yml
file to deploy jqplay
with a database meaning little setup is required with the following command:
docker-compose -f docker-compose-mysql.yml up -d
It is recommended that you change the database credentials in the docker-compose-mysql.yml
file to something more secure.
If you already have a MySQL database running, you can make use of my public Docker image to deploy jqplay
with the following command, replacing the DATABASE_URL
environment variable with your database credentials:
docker run -d -p 8080:8080 -e DATABASE_URL="jqplay_user:jqplay_pass@tcp(db:3306)/jqplay_db" registry.jackoxi.systems/public-images/jq-play-server:latest
If you have a MySQL running, you can make use of the Dockerfile
to deploy jqplay
with the following command, replacing the DATABASE_URL
environment variable with your database credentials:
docker build -t jqplay --build-arg DATABASE_URL="jqplay_user:jqplay_pass@tcp(db:3306)/jqplay_db" .
docker run -d -p 8080:8080 jqplay
If you have a MySQL database running, you can make use of the jqplay binary to deploy jqplay
with the following command, replacing the DATABASE_URL
environment variable with your database credentials:
DATABASE_URL="jqplay_user:jqplay_pass@tcp(db:3306)/jqplay_db" DATABASE_DRIVER="mysql" ./jqplay
jqplay is released under the MIT license. See LICENSE.md.