A PHP web app for visualizing accelerator zones at Jefferson Lab.
The sketch app provides a diagram of accelerator zone elements in relation to each other following s-coordinate order for quick at-a-glance understanding of zone layout. The sketch app is is integrated into the CEBAF Element Database (CED) and related LED/UED web interfaces and can optionally link to the System Readiness Manager (SRM) components.
- Grab project
git clone https://github.com/JeffersonLab/sketch
cd sketch
- Launch Compose
docker compose up
- Navigate to page
http://localhost/sketch
This app requires a PHP 8.1 interpreter and is developed to run in Apache httpd. Grab the source code at a given release tag and drop the www
directory into an Apache httpd served directory. Configure.
Set the following runtime environment variables to configure:
Name | Description |
---|---|
DEFAULT_ELEMENT_DATABASE_URL | What to pre-fill index form with (scheme, host, port, and path); example: https://cebaf.jlab.org/ced |
SRM_SERVER_URL | Scheme, host, port, and path of SRM; example: https://ace.jlab.org/srm |
The Apache server must be configured as well. Example configuration: sketch.conf.