This website is a simple URL shortener, utilizing node.js and Redis. A live example can be found on go.thomasng.me.
- Clone or download the repository.
- Edit
.env
by cloning.env.example
, where:PORT
is the port that the website will run onREDIS_PASSWORD
is the password to your redis serverKEY_LENGTH
is the length of the key for each link (example.com/<KEY>)
npm install
npm start
The website can also be used in conjunction with Docker.
docker compose up
docker build . -t urlshortener
docker run -d -p PORT:PORT urlshortener
This isn't 100% stable, feel free to make your own adjustments if you are hosting yourself. The live example is not to be relied upon. Not responsible for any deleted redirects.