针对多个大科学工程中各种实验器件,如光电倍增管(Photomultiplier Tube,PMT)、读出电子学电缆等性能批量测试数据管理的实际需求,开发了基于Ionic平台的相关数据库。该数据库利用Angularjs、Ionic和HTML5为前端,以Node.js和Express为后端服务,生成的MySQL数据库可运行于手机客户端与Web端的数据管理系统。以同一套代码完成跨平台运行,实现在不同浏览器(Chrome、IE、Safari)、不同系统(Windows Phone、Android、lOS)上运行的具有完整功能的数据库软件。具备对实验项目中部分测试数据进行跟踪、记录和查询等功能,为项目的进行提供有力的保障。
Background: Large-scale scientific facilities need bunch test for their key devices, and need the special database to manage the test results. Purpose: This study aims at the practical requirements of data management for experimental devices, such as photomultiplier tube (PMT) and readout electronics cable, etc. and the design of related database based on the Ionic development platform for scientific facility. Methods: Angular.js, Ionic, HTML5 are employed to implement the front-end, whilst Node.js, Express are used for the back-end services. Combine with the MySQL, a data management system is generated to run across various platforms such as the mobile client and the Web side. Results: The database software can execute in different browsers (Chrome, IE, Safari) via various operating systems (Windows Phone, Android, IOS) with the same code. Conclusion: With functionality of track, record and query the variety of test data for all experimental devices, this database provides effective protection for the conduct of the experimental project.