link-tree-clone Tailwind Templates

Link Tree Clone

A Linktree clone featuring a user account system and authentication to showcase social links using React, NextJS, TailwindCSS, & Supabase.

Link-tree-clone

A Linktree clone featuring a user account system and authentication to showcase social links using React, NextJS, TailwindCSS, & Supabase.

Features

  • Registration & User Account System for Personalized Pages.
  • Email Verification for Secure Access.
  • Functional Links to Enhance User Experience.
  • Profile Picture to Personalize Your Page.
  • 'Log Out' Button for Public View Testing.
  • Theme Configuration for a Customized Look.

About

I developed this project with specific objectives in mind:

  • Leveraging and gaining proficiency with Supabase.
  • Creating a project using Next.JS and Tailwind.
  • Implementing authentication via Supabase.
  • Incorporating image uploading using the react-images-uploading package.

Installation

  1. Set up Tailwind CSS with Next.js.

  2. Register on Supabase and create a project.

  3. In .env.local, configure 'NEXT_PUBLIC_SUPABASE_URL' (project-settings>api>project-url) and 'NEXT_PUBLIC_SUPABASE_ANON_KEY' (project-settings>api>project-api-keys) with values from your Supabase.

  4. Install the Supabase JavaScript library:

    npm install @supabase/supabase-js
    
  5. Create a new table in Supabase and name it "links"

  • Columns:
    • 'title' (varchar)
    • 'url' (varchar)
    • 'user_id' (varchar)
  • Disable RLS (for testing)
  1. Create an additional new table and name it "users"
  • Columns:
    • 'profile_picture_url' (varchar)
    • 'username' (varchar)
  • Disable RLS (for testing)
  1. Create a 'public1' bucket in storage

Establish a policy for the bucket under 'Other policies under storage.objects'

  • Name: 'All access for all users'
  • Allowed operation: ALL
  • USING and WITH CHECK expression: 'true' for both
  1. Update in the file your-component.js

Locate the line:

router.push("/celegarl");

Replace it with your signup username.

Getting Started

  1. Initiate the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
  1. Access http://localhost:3000 in your browser for a live demo.

  2. Register and verify your email.

  3. Log in, add links, and upload a profile picture.

  4. Log out to showcase the public page.

Top categories

Loading Svelte Themes