dataset is a set of command line programs run from a shell like Bash. It is designed for single user, single process management of a JSON object documents as a collection where JSON documents are referenced by a unique identifier or key. datasetd is a web service which serves a similar purpose but is intended for supporting multi-user and multi-processes.
This is generalized instructions for a release. For deployment suggestions see NOTES.md
There is an experimental installer.sh script that can be run with the following command to install latest table release. This may work for macOS, Linux and if you’re using Windows with the Unix subsystem. This would be run from your shell (e.g. Terminal on macOS).
curl https://caltechlibrary.github.io/dataset/installer.sh | sh
This will install dataset and datasetd in your $HOME/bin
directory.
If you are running Windows 10 or 11 use the Powershell command below.
irm https://caltechlibrary.github.io/dataset/installer.ps1 | iex
If your want to install a specific verions set the
PKG_VERSION
environment variable then download. E.g.
version 2.1.5 in tihs example.
For Linux and macOS
export PKG_VERSION=2.1.5
curl https://caltechlibrary.github.io/dataset/installer.sh | sh
For Windows
$env:PKG_VERSION = '2.1.5'
irm https://caltechlibrary.github.io/dataset/installer.ps1 | iex
You need to have git, Pandoc, Go compiler and Make (GNU Make)
available for this recipe to work. Clone the repository and then compile
in the typical POSIX style. NOTE by default the binaries are installed
in $HOME/bin
and that is assumed to be in your path.
cd
git clone https://github.com/caltechlibrary/dataset
cd dataset
make
# Add any missing dependencies you might need in your Go environment
make test
make install
On Windows you would perform the following in Powershell.
cd
git clone https://github.com/caltechlibrary/dataset
cd dataset
.\make.bat
# Follow the prompts and instruction in the bat file.
The tool chain to compile on Windows make several assumptions.
Since I don’t assume a POSIX shell environment on windows I have made batch files to perform some of what Make under Linux and macOS would do.
Compilation assumes go v1.23 or better.