URL shortening service deployed on Vercel: hanayabuki.cf
🔍 How to deploy it on vercel.com?
- 🛠 clone this repository in github under your own account.
- 💵 prepare a mongodb database. Ensure that it contains a database named
shorturl
, and a collection namedlinks
. - ⛓ link your corresponding repository in github in Vercel.
- 📥 add a key named
DB_URI
to the environment variables of the Vercel project with the value of the mongodb connection address. Format e.g.mongodb+srv://root:<password>@<username>.mongodb.net/?retryWrites=true&w=majority
- 📧 commit the deployment locally with
vercel --prod
command using the Vercel CLI. - 📌 (Optionally) bind the project to a very short, very short domain name.
MIT