{"id":35126014,"url":"https://github.com/advancedphotonsource/bely","last_synced_at":"2026-05-18T20:03:41.263Z","repository":{"id":310533641,"uuid":"1040186733","full_name":"AdvancedPhotonSource/BELY","owner":"AdvancedPhotonSource","description":"Best Electronic Logbook Yet","archived":false,"fork":false,"pushed_at":"2026-03-25T14:06:08.000Z","size":253845,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-26T16:19:49.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdvancedPhotonSource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/bin/build_cherrypy.sh","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-18T15:29:56.000Z","updated_at":"2026-03-25T14:03:30.000Z","dependencies_parsed_at":"2025-08-18T19:25:12.568Z","dependency_job_id":null,"html_url":"https://github.com/AdvancedPhotonSource/BELY","commit_stats":null,"previous_names":["advancedphotonsource/bely"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/AdvancedPhotonSource/BELY","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdvancedPhotonSource%2FBELY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdvancedPhotonSource%2FBELY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdvancedPhotonSource%2FBELY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdvancedPhotonSource%2FBELY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdvancedPhotonSource","download_url":"https://codeload.github.com/AdvancedPhotonSource/BELY/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdvancedPhotonSource%2FBELY/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33189279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-28T02:40:14.075Z","updated_at":"2026-05-18T20:03:41.256Z","avatar_url":"https://github.com/AdvancedPhotonSource.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BELY\n\n**Prerequisites:**\n\nIn order to deploy or develop BELY, you must have some support software installed. Follow the instructions below to achieve this.\n\n    # For red-hat based linux distribution run the following:\n    yum install -y gcc libgcc expect zlib-devel openssl-devel openldap-devel readline-devel git make cmake sed gawk autoconf automake wget mysql mysql-libs mysql-server mysql-devel curl unzip\n    # For debian based linux distributions run the following:\n    apt-get install wget gcc git make cmake build-essential libcurses-ocaml-dev curl expect mysql-server libmysqlclient-dev openssl libssl-dev libldap2-dev libsasl2-dev sed gawk unzip\n\n# Deployment\nFor detailed deployment instructions please refer to our [administrators guide](https://confluence.aps.anl.gov/display/APSUCMS/Administrator+Guide).\n\n**Deployment Procedure:**\n\n    # Make a new directory to hold cdb and its support directories. (replace or set DESIRED_CDB_INSTALL_DIRECTORY var with a unix directory.)\n    mkdir $DESIRED_CDB_INSTALL_DIRECTORY\n    cd $DESIRED_CDB_INSTALL_DIRECTORY\n    # get the distribution of Component DB (Alternativelly download a release zip and unzip it).\n    git clone https://github.com/AdvancedPhotonSource/ComponentDB.git\n    # Navigate inside the distribution.\n    cd ComponentDb\n    # Build support needed for the application\n    make support\n    # load enviornment variables with new support built.\n    source setup.sh\n    # Create deployment configuration\n    make configuration\n    # Create a clean db for the distribution\n    make clean-db\n    # Prepare web portal configuraiton\n    make configure-web-portal\n    # Configure MQTT (optional - needed for notification features)\n    ./sbin/bely_create_mqtt_configuration.sh\n    ./sbin/bely_configure_mqtt_service.sh\n    # Deploy web portal\n    make deploy-web-portal\n\n    # All done... output of the command below should print url to the deployed portal.\n    echo \"https://`hostname`:8181/bely\"\n    \n    \n# Development \nFor detailed development instructions please refer to our [developers guide](https://confluence.aps.anl.gov/display/APSUCMS/Developer+Guide). \n\n**Getting Started with development:**\n\n    # first make a fork of this project.\n    # create a desired development directory and clone into it\n    mkdir $desired_dev_directory\n    cd $desired_dev_directory\n    git clone https://github.com/AdvancedPhotonSource/ComponentDB.git\n    cd ComponentDb\n\n    # Getting support software\n    make support\n    # Get Netbeans\n    make support-netbeans\n\n    # Load up the environment\n    source setup.sh\n\n    # Prepare Dev DB\n    # mysql could be installed as part of support by running 'make support-mysql'\n    # - Afterwards run `./etc/init.d/cdb-mysql start`\n    # if you have mysql installed and started run...\n    make clean-db\n\n    # Start development\n    make dev-config\n\n    # Open Netbeans\n    netbeans \u0026\n\n## Preparing Netbeans\nOnce netbeans is open a few steps need to be taken to prepare netbeans for BELY development.\n1. Open BELY Project: File \u003e Open Project\n2. Navigate to $desired_dev_directory/ComponentDB/src/java\n3. Select LogrPortal and hit Open Project\n4. Right click on LogrPortal top level under projects\n5. Click \"Resolve Missing Server Problem\"\n6. Add Server -\u003e Payara Server\n  - Installation Location: $desired_dev_directory/support-`hostname`/netbeans/payara\n  - Version: 5.2022.5\n  - Use the wizard's download\n7. Next -\u003e Use Default Domain Location -\u003e Finish add server instance wizard\n8. Select the Newly added \"Payara Server\"\n9. Copy over the required mysql client to new payara server.\n```sh\n# cd into the $desired_dev_directory/$distribution_directory\ncp src/java/LogrPortal/lib/mariadb-java-client-3.1.0.jar ../support-`hostname`/netbeans/payara/glassfish/domains/domain1/lib/\n```\n10. Run the project\n\n## Automated Tests\n\nTo get started with running the API test suite the BELY app needs to be running on local machine. \n\n### Prereqs \n\n```sh \n# API requirements \npip install -r  tools/developer_tools/python-client/test/requirements.txt\n```\n\n### Manual Test\n\n```sh\nsource setup.sh\n# Deploy test-db data\nmake test-db\n# Test API \n# Navigate to python-client directory\ncd tools/developer_tools/python-client/\n# Optionally genreate latest version of API. \n./generatePyClient.sh http://localhost:8080/bely\n# Run tests\npytest test/api_test.py\n```\n\n### Single Command Test\nThis will backup the db, deploy test db, run test, and restore backup. \n\n```sh\nsource setup.sh\nmake test\n```\n\n# License\n[Copyright (c) UChicago Argonne, LLC. All rights reserved.](https://github.com/AdvancedPhotonSource/ComponentDB/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvancedphotonsource%2Fbely","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadvancedphotonsource%2Fbely","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvancedphotonsource%2Fbely/lists"}