Skip to content

JeffersonLab/sketch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sketch

A PHP web app for visualizing accelerator zones at Jefferson Lab.

Screenshot



Overview

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.

Quick Start with Compose

  1. Grab project
git clone https://github.com/JeffersonLab/sketch
cd sketch
  1. Launch Compose
docker compose up
  1. Navigate to page
http://localhost/sketch

Install

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.

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.