Bump golang.org/x/net from 0.17.0 to 0.23.0 (#95)
Bumps golang.org/x/net from 0.17.0 to 0.23.0.
updated-dependencies:
- dependency-name: golang.org/x/net dependency-type: indirect …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
glsl-sandbox
Server development
Setup
Alternatively you can download and uncompress the binary in the repository directory from https://github.com/mrdoob/glsl-sandbox/releases/latest
Run server:
The first time it starts it creates an admin user and the credentials are printed.
The server should be accessible on http://localhost:8888
Admin interface is on http://localhost:8888/admin
Template and javascript modifications
The server reloads templates and assets on each query. This eases the development as you can modify the files and changes will take effect reloading the page.
There’s only one template that is used for both the gallery (index) and admin page. The file is
server/assets/gallery.html
and uses go language templates. You can find more information about its syntax here:Currently the page receives this data:
This is,
galleryData
for the page andgalleryEffect
for each effect. For example, to print all the effect IDs you can use:The following directories are accessible from the server and can be modified if needed:
server/assets/css
->/css
server/assets/js
->/js
By default the data files are read from
./data
. This path can be hanged with the environment variableDATA_PATH
. For example:The data directory contains the sqlite database (
glslsandbox.db
) and the thumbnails (thumbs
directory).