sveltekit-url-shortener

Sveltekit Url Shortener

A URL shortener and link locker built using SvelteKit, MongoDB & D3.js

🔗 URL Shortener

Features

  • Secure links using passwords
  • QR Code generation
  • localStorage history for anon users
  • user-agent based analytics using MongoDB's time series collection
  • Link tags
  • Click count

Preview:

Local Development:

Database Setup:

This project uses MongoDB as the database. The easiest way to install it is using docker. Enter the following command on your terminal if you already have docker installed. This will install and run the latest version of mongodb.

$docker run --name ky -dit -p 27017:27017 --rm mongo

Project Setup

  • git clone this repo and cd into it and then:
  • npm install
  • npm run dev -- --open

Environment Variables:

  • VITE_MONGODB_URI=mongodb://localhost:27017
  • VITE_NODE_ENV=development

Top categories

Loading Svelte Themes