No description
Find a file
2026-06-11 18:49:06 +00:00
Dockerfile Initial template 2026-06-11 18:49:06 +00:00
package.json Initial template 2026-06-11 18:49:06 +00:00
README.md Initial template 2026-06-11 18:49:06 +00:00
server.js Initial template 2026-06-11 18:49:06 +00:00

url-shortener

Express + PostgreSQL link shortener.

  • POST /api/links with {"url": "https://example.com"} returns a 7-char hash and short URL
  • GET /<hash> 302-redirects to the original URL and counts the hit
  • GET /api/links lists recent links with hit counts

Reads DATABASE_URL and PORT from the environment — EZKeel provides both at deploy time.