View at: https://url-jam.vercel.app/ 🚀
URL Jam is a simple URL shortener application built with Next.js server actions, MongoDB, and Prisma. It allows users to shorten long URLs into more manageable and shareable links which are stored in localSotrage
- Shorten long URLs into concise links.
- Link history in LocalStorage with deletion
- Easy setup with MongoDB and Prisma integration.
- Track clicks
- Customise short link
- Next.js x TypeScript
- MongoDB: A NoSQL database used for storing URL data on Atlas
- Prisma: A modern database toolkit for TypeScript and Node.js, used for database ORM (Object-Relational Mapping).
Before running the application, ensure you have the following installed:
- Node.js
- MongoDB
- Prisma CLI
- Clone the repository:
git clone https://github.com/martinDM/url-jam.git
- Navigate to the project directory and download dependencies
cd url-jam
yarn install
- Set up the environment variables by creating a
.env
file and adding the following:
DATABASE_URL="mongodb://[CONNECTION STRING FOR ATLAS OR LOCAL MONGO INSTANCE]"
- Generate Prisma client:
npx prisma generate
- Start the development server:
yarn dev
-
Access the application in your browser at
http://localhost:3000
. -
Enter a long URL in the input field and click "Jam" to generate a shortened URL.
-
Share the shortened URL with others.
- Martin di Martino-Marriott
This project is licensed under the MIT License.