Next.Js Example

URL Shortener created with Next.js, TypeScript, Mongoose

March 7th, 2023

URL Shortener created with Next.js, TypeScript, Mongoose's picture

About:

OnURL is a URL shortener which makes it easy to shorten and share your short URLs.
Live site on Vercel is here.

README.md:

Stack

Development

First, you need to set a MongoDB connection string for DATABASE_URL in .env.development.

Install dependencies:

npm install

Create db constaints (like @unique indexes):

npm run db:migrate

Run it in development mode:

npm run dev

Vercel Deployment

First, you need to set a MongoDB connection string for DATABASE_URL in .env.production.
Vercel's Now is one of the simplest deployment options ever. Deploying a Next.js App guide is just what you would need. I just downloaded the official cli and run vercel. That's it!

Share this:

You May Like:

full-stack music app's picture

full-stack music app

Nedx © 2023