Simple go links server backed by airtable base.
For Chrome on Mac OS
- create a table in airtable with 1 column for short codes and 1 column for urls
cp airtable.sample.config.json airtable.config.json
and updatenpm install
- install dependenciesnode server
- run server on port 6060http://localhost:6060/go/<key>
redirects to the link mapped to the given short codehttp://localhost:6060/
shows all short code to URL mappings (opens your airtable base)http://localhost:6060/reload
will tell the server to reload the mapping file. do this after making changes in airtable.
- add a chome search engine. See help docs for more info
- Set name to
go
- Set keyword to
go
- Set URL to
http://localhost:6060/go/%s
- Set name to
- an alternative to the previous step is to use the browser extension in the
extension
folder- open your browser and go to its extension settings
- enable developer mode
- load unpacked
- select the extension folder
- open your browser and type
go <space>
then<short code>
and you should redirect to the url that maps to the given short code
npm install -g pm2
pm2 start golink.config.js --env prod
pm2 startup
then follow the directionspm2 save
- read pm2 docs for more info
- create a table in airtable with 1 column for short codes and 1 column for urls
- params for this table
base = shrZOvefftUFNSZur
table = links
keyCol = key
urlCol = url
- add or update items in your airtable base
- force a reload of the data by navigating to http://localhost:6060/reload
- you can define golinks for search engines
- eg, suppose you define short-code=
g
and url=https://www.google.com/search?q=%s
- in your browser, when you type
g purple onions
you will navigate tohttps://www.google.com/search?q=purple%20onions