Sign inSign up

robbj/linkit

By robbj

Updated about 6 years ago

A tiny express app to redirect traffic using a string template

Image
0

532

robbj/linkit repository overview

Linkit

A tiny node app to redirect traffic using a string template

Environment Variables

NameUse
URL_TEMPLATEA template to redirect the user where {0} is replaced with the 1st url parmeter
HOME_URLA url to redirect the user if they hit home, i.e. /

Sample run

docker run -it --rm -p 3000:3000 \
  -e "HOME_URL=https://github.com/robb-j/" \
  -e "URL_TEMPLATE=https://github.com/robb-j/{0}" \
  robbj/linkit

Dev Commands

# Start the app
npm run start

# Start the app and reload on file changes
npm run watch

# Lint the web & test directories
npm run lint

# Run the unit tests
npm test

# Generate coverage, outputs to coverage/
npm run coverage

Versioning and releasing

Use [npm version] to generate a new version and push it to GitHub. This will trigger a DockerHub pipeline to build a docker image.

npm version # minor | major | patch | --help
git push --tags

Tag summary

Content type

Image

Digest

Size

28.4 MB

Last updated

about 6 years ago

docker pull robbj/linkit:v0.5.0