Skip to content

Repository files navigation

NPM Version NPM Downloads Bun Version HDF5 Target Version Build Status

hdf5.bun

To install dependencies:

bun install

To run:

Edit the .env to set native hdf5 library directory HDF5_ROOT and data directory HDF5_DATA_DIR with h5 files of interest.

Unless you have a trusted certificate, create a cerificate with mkcert localhost 127.0.0.1 ::1 Set the KEY & CERT

export TLS_KEY_FILE=<your favorite place>/localhost+2-key.pem
export TLS_CERT_FILE=<your favorite place>/localhost+2.pem

to enable https security.

PORT=3000
if lsof -Pi:$PORT -sTCP:LISTEN -t >/dev/null ; then
   echo "backend is already running on port $PORT. Skipping start."
else
   echo "Port $PORT is free. Starting backend application..."
bun dev:backend
fi
PORT=5173
if lsof -Pi:$PORT -sTCP:LISTEN -t >/dev/null ; then
   echo "frontend is already running on port $PORT. Skipping start."
else
   echo "Port $PORT is free. Starting frontend application..."
bun install
bun dev:frontend
fi

Then have two tabbed terminals open. Run your script where the first pass brings up backend watch and the next tab the frontend.

Go to https://localhost:5173/ defaut port.

Swagger UI at https://localhost:3000/docs

AsyncAPI UI at https://localhost:3000/asyncapi

This project was created using bun init in bun v1.3.14. Bun is a fast all-in-one JavaScript runtime.

Test it

bun test ./test/test_hdf5.js
bun test ./test/test_h5im.js
bun test ./test/test_h5lt.js #23 passing 18 failing

About

Exploring faster ways to process the data

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages