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
.envby cloning.env.example, where:PORTis the port that the website will run onREDIS_PASSWORDis the password to your redis serverKEY_LENGTHis the length of the key for each link (example.com/<KEY>)
npm installnpm 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.