A simple serverless url shortenener. Built with β€οΈ by Arghya Ghosh.
8bits Link Shortener is a simple serverless url shortener with MongoDB and Vercel. It helps you shorten long links for easy sharing.
- β‘οΈ Fast: Paste long url and get/copy short url in less than a second.
- β€οΈ Lightweight & Simple: Crafted with minimalistic UI design.
- π Secure by Design: Since it's serverless, it's secure.
To know in-depth about 8bits Link Shortener, please visit the documentation.
- Next.js - The React Framework for Production.
- Ant Design - A design language for React.
- MongoDB - A document-oriented database.
- Vercel - A hosting platform for modern web apps.
- A basic understanding of the Next.js framework is required.
- You should have Vercel CLI installed.
- A MongoDB database is required.
- A Vercel account is required.
Please note that entered values are case-sensitive. Default values are provided as an example to help you figure out what should be entered.
On Vercel, you have to add the following Environment Variables to your project while deploying to production.
Variable | Default Value | Description |
---|---|---|
MONGODB_URI | mongodb+srv://cluster0.example.mongodb.net | MongoDB connection string. |
NEXT_PUBLIC_VERCEL_URL | https://8bits.vercel.app or https://example.com | Vercel URL or your custom domain. |
- Clone the repository.
$ git clone https://github.com/uiuxarghya/8bits.git
$ cd 8bits
$ npm install
- Create a
.env.local
file repository's root directory with your own keys.
MONGODB_URI=""
NEXT_PUBLIC_VERCEL_URL=""
- Run
vercel dev
to start the development server and open the browser athttp://localhost:3000
.
Provide the following environment variables to your Vercel project.
If you want to say thank you and/or support the active development of 8bits:
- Add a GitHub Star to the project.
- Tweet about the project on your Twitter.
- Write a review or tutorial on Medium, Dev.to or personal blog.
- Support the project by donating a cup of coffee.
- Arghya Ghosh (@uiuxarghya) - Creator
This project is licensed under the Apache-2.0 License - see the LICENSE
file for details.