A tiny express app to redirect traffic using a string template
532
A tiny node app to redirect traffic using a string template
| Name | Use |
|---|---|
URL_TEMPLATE | A template to redirect the user where {0} is replaced with the 1st url parmeter |
HOME_URL | A url to redirect the user if they hit home, i.e. / |
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
# 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
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
Content type
Image
Digest
Size
28.4 MB
Last updated
about 6 years ago
docker pull robbj/linkit:v0.5.0