boomack
v0.14.9
Published
web app for displaying hyper-media items in concert with e.g. an IDE
Downloads
75
Readme
Boomack
web app for displaying hyper-media items in concert with e.g. an IDE
Inspired by ideas from Daniel Kiertscher
Requirements
- NodeJS ≥ 10.12
Getting Started
- Install the Boomack server:
npm i -g boomack
(may requiresudo
on Linux) - Start the server listening at default port 3000:
boomack
- Open the display page in a browser:
http://127.0.0.1:3000/
- Send display requests via the HTTP API:
Bash:
curl -H "Content-Type: application/json" \
-d '{"text":"Hello World!"}' \
http://127.0.0.1:3000/v1/display
PowerShell:
Invoke-WebRequest http://127.0.0.1:3000/v1/display `
-Method Post `
-ContentType application/json `
-Body '{"text":"Hello World!"}'
Use the Boomack CLI
- Install the Boomack CLI:
npm i -g boomack-cli
(may requiresudo
on Linux) - Send API requests:
- Send plain text to the default slot in the default panel
boom -s "Hello World!"
- Create new panel
demo
with two slots:head
andmain
:boom panel add demo "{grid: {rows: 3}, slots: {head: {}, main: {row: 1, rowSpan: 2, history: 10}}}"
- List all existing panels:
boom panel ls
- Send Markdown to the slot
head
in the paneldemo
:boom --target demo/head -s "# Demo" -t text/markdown
- Send a file to the slot
main
in the paneldemo
:boom --target demo/main -f ./my-code.js
- Send plain text to the default slot in the default panel
Try out the demos
- Clone the repository
- Start a local Boomack server:
boomack -b --panel default
- Run scripts in
demo
folder, e. g.:node demo/display-image.js
Development
- Install development dependencies:
npm i
- Run tests:
npm test
- Build docs:
npm run docs
- Make sure, you have Gulp CLI installed:
npm i -g gulp-cli
- Update vendor libraries
- Update e.g. lodash:
npm upgrade lodash
- Copy web client dependencies from
node_modules
to client folder:vendor
- Update e.g. lodash: