https://github.com/uwdata/vegaserver
A simple node server that renders vega specs to SVG or PNG.
https://github.com/uwdata/vegaserver
Last synced: 9 months ago
JSON representation
A simple node server that renders vega specs to SVG or PNG.
- Host: GitHub
- URL: https://github.com/uwdata/vegaserver
- Owner: uwdata
- License: apache-2.0
- Created: 2015-01-30T06:34:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-06T22:13:20.000Z (almost 11 years ago)
- Last Synced: 2024-04-16T06:17:39.350Z (over 1 year ago)
- Language: JavaScript
- Size: 151 KB
- Stars: 13
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vega server
A simple node server that renders vega specs to SVG or PNG.
## Install
You may have to `export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig` if you see an error like `Package xcb-shm was not found in the pkg-config search path.`.
If using the [docker](https://docs.docker.com/) container:
# Build the image
cd vegaserver
sudo docker build -t uwdata/vegaserver .
# Run, serving on port 80
sudo docker run -d -p 80:8888 uwdata/vegaserver
## Run
`npm run start`
## Use
* add some data
* run `curl -v -X POST -d @./test.json 'http://localhost:8888/?format=svg&header=true' --header "Content-Type: application/json"`