This is a simple URL shortening app that uses an SQLite database to store URLs.
URLs are encoded using a SHA-256 hash to ensure uniqueness of the short URL and a check is made on the database for existing URLs so that we don't store the same URL more than once.
bun install
cd client
bun install
cd ..
cd server
bun install
cd ..
To run, use bun run dev which will run the client and server concurrently.
-Visit http://localhost:5173 in your browser to use the app. -Enter a URL → click Shorten → short URL appears. -Clicking the short URL redirects via the Bun backend. -Invalid or empty URLs show proper error messages.