URL Shortener - A simple URL shortener service using Express, Prisma, and SQLite.
Run the following commands to get started:
npm install
npm run migrate
npm start
Make curl requests to shorten URLs:
curl -X POST -H "Content-Type: application/json" -d '{"url": "https://www.google.com"}' http://localhost:3000/shorten
Response:
{
"shortUrl": "http://localhost:3000/<shortId>"
}
Visit root URL to see the list of shortened URLs