zacharytamas / quick-restock

A tiny web server for redirecting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quick-restock

This is a tiny web server which I wrote while exploring using Go for personal projects. I use Go at Google for my day job but I've tended to use TypeScript for personal projects for years now.

All this application does is redirect you to a configured URL based on the path you request. This is used as part of an automation I have setup on my phone using Apple Shortcuts. Triggering the shortcut immediately gives me a camera view to scan barcodes on items, then by communicating with this server I am deep-linked into the corresponding app for repurchasing the item. It's just a quick way to restock items I've run out of.

Usage

The mappings between bar codes and URLS are expected to be stored in a Yaml file called data.yml in the root of the project. An example is provided in data.yaml.example.

To run the server, simply run go run main.go. The server will be available at http://localhost:3500, by default.

About

A tiny web server for redirecting.


Languages

Language:Go 100.0%