Really Short URLs Online is a small project utilizing Next.js to create a link shortening service.
The service takes a user submitted URL, checks validity, checks for duplicate entries, checks safety, and then returns a shortened link to the user.
The standard ObjectId for _id has been replaced with an md5 hash of the longUrl
{
"_id": "8ffdefbdec956b595d257f0aaeefd623",
"urlCode": "B6CWoFetRwDNzsTmMbKbO",
"longUrl": "https://www.google.com",
"hits": 4,
"date": "1654907548360"
}| field | type | reasoning |
|---|---|---|
| _id | unique, ascending | Primary key |
| urlCode | unique, ascending | Frequent Lookup |