A simple URL Shortener web application built with Node.js and Express.
To start the server locally:
pnpm install # install dependencies (only needed once)
pnpm start # start the serverBy default, the server will run at:
http://localhost:3000
Visit this address in your browser. The home page will show you how to use the URL shortener, including example links for creating and using short URLs with your current domain and port.
You can configure runtime behavior with environment variables. Example values are provided in .env.example.
PORT— TCP port the server listens onNODE_ENV— runtime environment. Common values:development— local development, shows debug info and stack tracesproduction— production runtime, hide detailed errorstest— automated test runs
Do not commit a real .env containing secrets; keep .env in .gitignore.