Giter VIP home page Giter VIP logo

jeremiasvillane / snipper Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 3.18 MB

A simple URL shortener created using Next.js 14, Typescript, NextAuth, Next-Themes, NextUI, Framer Motion, Headless-UI, Prisma, PostgreSQL and Tailwind CSS.

Home Page: https://snppr.vercel.app

License: MIT License

JavaScript 0.46% TypeScript 97.50% CSS 2.04%
framer-motion next-themes nextauth nextjs nextui postgresql prisma project server-actions tailwindcss typescript headless-ui

snipper's Introduction

Snipper

Snipper: A simple URL shortener/tracker.

Version License FOSSA Status Prettier Last commit


This is a Next.js project implementing TypeScript, NextAuth, Next-Themes, NextUI, HeadlessUI, Framer Motion, Prisma, PostgreSQL and Tailwind CSS.

Features:

  • Generate uniques links
  • Track how many times a link has been clicked
  • Redirection screen
  • UI created with TailwindCSS and NextUI
  • Full responsivity and mobile UI
  • Light / Dark mode using next-themes
  • ORM using Prisma
  • PostgreSQL database using Vercel Storage
  • Authentication with next-auth
  • This project uses next/font to automatically optimize and load Google Fonts.

Prerequisites

Node version 20.x.x

Setup .env file

POSTGRES_PRISMA_URL =
  "postgresql://username:password@host:port/database?schema=public";
POSTGRES_URL_NON_POOLING =
  "postgresql://username:password@host:port/database?schema=public";
NEXT_PUBLIC_APP_URL = "https://www.your-deploy-url.com";

NEXTAUTH_SECRET = "secretkey";
NEXTAUTH_URL = "https://www.your-deploy-url.com";

// Visit: https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_ID = "your-google-client-id";
GOOGLE_CLIENT_SECRET = "your-google-client-secret";

Setup Prisma

Add PostgreSQL Database (I used Vercel Storage)

npx prisma generate
npx prisma db push

Start the app

npm run dev

Open http://localhost:3000 with your browser to see the result.

Screenshots

Show

Landing

screen01

Form to create a new Link

screen02

Modal to copy the new link

screen03

My Links section

screen04

Light Theme

screen05

Profile section

screen06

About section (mobile)

screen07

License

Distributed under the MIT License.

FOSSA Status

Contact me

snipper's People

Contributors

dependabot[bot] avatar jeremiasvillane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

fossabot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.