Solid Scan is designed to be a simple and easily configurable web based QR code logger. It achieves this through he use of a single config file, allowing the user to predefine delimiters, value labels, selectable categories, backend-service, ect.
const conf = {
name: "concert", // URL = https://<host>/<routePrefix>/<name>
routePrefix: "/test",
debug: flase,
output: {// Backend Service
origin: origin,
path: 'scan/output/',
},
delims: {// Allow you to adjust for pre-defined QR codes
settings: '@@',
mainInput: '-'
},
categories: [// These catagories will be sent with each request and are configurable within the UI
{
name: 'city',
//alias: City / Region, //(optional)
options: ['Austin','Atlanta','Tennessee', 'Chicago','Baltimore','New Orleans','Boulder']
},
{
name: 'artist',
options: ['Lightning Hopkins', 'SRV', 'Eric Clapton', 'Muddy Waters', 'Lemon Jefferson', 'Buddy Guy', 'John Hurt']
},
{
name: 'ticket',
options: ['General','Backstage','VIP', 'Staff']
},
{
name: 'night',
options: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
},
],
input: {
labels: ['ticketNo', 'section', 'seat'],// These represent the keys for the associated QR values
constants: {
'company': 'Ticket CO.',// Constants will send with every request and will not be configurable within the UI
},
},
};
export default conf;
To test out Solid Scan, clone this repo locally and run the following commands:
cd www
npm install
npm run dev