Javascript Vue

Web-based GUI for an inventory management system used to track loads of old vacuum tubes3 min read


Web-based GUI for an inventory management system used to track loads of old vacuum tubes.

A friend of mine recently bought out a stash of old vacuum tubes at the estate sale of a local electronics shop owner. This application is designed to help him fight his natural tendency to let them all pile up for decades in an unsorted mess in the same way that the shop owner had done. Not because such clutter is necessarily a bad thing, but because it takes up space in his apartment that he could otherwise be dedicating to the accumulation and investigation of more fun toys.

Of course, it could all be probably be handled with a big spreadsheet, too. But where’s the fun in that?


Mobile friendly
Flexible search
Global keyboard shortcuts
Store arbitrary facts about each inventory item, including web links
Autocomplete common fields for rapid data entry
Automatically assign unique inventory number to each item
Store test status and results for each tube
Built-in Google search to quickly look up photos or datasheets and such
Support for photos (links to images on the web or take pictures from the camera on your device)
Automatically generate QR codes for each inventory item
Printable labels



A running instance of toobz-api that can be accessed from the browser


The location of the toobz-api service needs to be accessible from the browser and set in src/config.js

export default {
apiBase: “”


yarn install


The following transpiles and runs under a local web-server with hot-reload capabilitity for development.

yarn serve

The dev server configuration is located in src/vue.config.js and is currently configured to serve as HTTPS with a particular pair of certificate files. You can, of course, change these settings, including setting https: false if you wish.

However, note that

Browsers will silently block the camera access functionality without HTTPS unless it is running under localhost. Everything else should continue to work fine, however.
If your web server is running under HTTPS, the API will also need to be available (and configured to be accessed via, see above) HTTPS as well, or else the AJAX calls will be blocked and the app will not work at all.

For further details on configuring SSL certificates for dev, see SSL Certificates.


The following transpiles and minifies for production.

# using yarn
yarn build
# or, using the Makefile wrapper
make build

The results will be written to the dist folder and can be served by any static web server.
Take care to serve over HTTPS (see the limitations above otherwise).


A basic Dockerfile is provided for you to use if you like. Don’t if you don’t.

The container uses Nginx to serve the statically generated production build files. It assumes HTTPS, and provides a suitable simple configuration
file at docker/default.conf which will mount to the correct place.

So a typical workflow might look like

make build
cp dotenv .env-container # and edit as needed

Technologies used

Vue.js because it’s about the only frontend web framework that doesn’t make me want to kill myself
Vuetify because John has done a really nice job with this
Axios because I’m lazy and it’s there
easy-vue-camera because it makes interacting with the device camera painless
vue-qr because QR code generation
Nginx because that’s how I roll
Docker because containers are convenient, and Docker is, well, adequate




View Github

Leave a Reply

Your email address will not be published.

Pin It on Pinterest