---
title: "Discussion on \"Create your own URL shortener with Next.js and MongoDB in 10 Minutes\" | Hashnode"
description: "Discussion on \"Create your own URL shortener with Next.js and MongoDB in 10 Minutes\". Motivation\nA few weeks back, I was working on a Twitter bot to post my popular articles and I realized that links of some articles are not parsed well in the Tweet. However, shortening them using Rebrandly worked well. \nSo, I decided to make a URL sh..."
url: "https://hashnode.com/posts/create-your-own-url-shortener-with-nextjs-and-mongodb-in-10-minutes/622f0edadf08b9b82341acaa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Create your own URL shortener with Next.js and MongoDB in 10 Minutes](https://blog.theanshuman.dev/create-your-own-url-shortener-with-nextjs-and-mongodb-in-10-minutes?utm_source=hashnode&utm_medium=feed)

Motivation A few weeks back, I was working on a Twitter bot to post my popular articles and I realized that links of some articles are not parsed well in the Tweet. However, shortening them using Rebrandly worked well. So, I decided to make a URL sh...

Mar 14, 2022 · 5 min read · blog.theanshuman.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#nextjs](https://hashnode.com/tag/nextjs)

## Written by

[Anshuman Bhardwaj](https://hashnode.com/@anshuman-bhardwaj)

@anshuman-bhardwaj · Gurugram, India

  
[View profile](https://hashnode.com/@anshuman-bhardwaj)

Full-Stack Engineering Manager @Canoo

Hi there, this is my guide to becoming a "Sane Developer", I'll be sharing lessons from my journey both technical and personal. I've been an Intern, a tech lead, and now a Manager. I want to bring perspective from each of the roles and share what I learned in my journey. I'm Anshuman Bhardwaj and I'm an Engineering Manager at Canoo. I create technical content to share knowledge about Web development and have 10K+ readers monthly across platforms.

## Responses 1

Markdown supported · ⌘↵ to post

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Mar 14, 2022](https://hashnode.com/posts/create-your-own-url-shortener-with-nextjs-and-mongodb-in-10-minutes/622f0edadf08b9b82341acaa/comment/622f260038e0a0d99d32f2d6)

So cool it does not seem to be that complicated.

[Anshuman Bhardwaj](https://hashnode.com/@anshuman-bhardwaj)

[Mar 14, 2022](https://hashnode.com/posts/create-your-own-url-shortener-with-nextjs-and-mongodb-in-10-minutes/622f0edadf08b9b82341acaa/comment/622f260038e0a0d99d32f2d6#reply-622f2c1538e0a0d99d32f410)

yes [Andrew Baisden](https://hashnode.com/@andrewbaisden), it is much simpler than we think. Glad you liked it!

Also, I added the redirect logic implementation as well.
