Skip to content

bohdan-nalyvaiko/Livedocs

Repository files navigation

🚀 LiveDocs: A Collaborative Real-Time Editor

Next.js TypeScript Tailwind CSS

📝 Real-time Collaboration Made Easy!

Developed with Next.js, styled with TailwindCSS, and powered by Liveblocks, LiveDocs is a collaborative text editor inspired by Google Docs.


🤖 Introduction

LiveDocs is a modern real-time collaborative editor featuring a clean UI and robust functionality. It demonstrates advanced developer skills in building scalable, real-time environments, creating a lasting impression.


⚙️ Tech Stack

  • Next.js
  • TypeScript
  • Liveblocks
  • Lexical Editor
  • ShadCN
  • Tailwind CSS

🔋 Features

  • 🔑 Authentication: Secure user authentication via GitHub using NextAuth.
  • ✍️ Collaborative Text Editor: Real-time updates for multiple users editing the same document.
  • 🗂️ Document Management:
    • Create, delete, and list documents.
    • Share documents with view/edit permissions via email or link.
  • 💬 Comments: Inline and general comments with discussion threads.
  • 👥 Active Collaborators: Real-time presence indicators for active collaborators.
  • 🔔 Notifications: Alerts for document shares, comments, and collaborator activities.
  • 📱 Responsive Design: Fully responsive across all devices.
  • 🎨 Code Architecture: Focused on modularity and reusability.

🤸 Quick Start

Prerequisites

Ensure the following tools are installed on your machine:

Cloning the Repository

git clone https://github.com/niladri-1/LiveDocs.git
cd LiveDocs

Installing Dependencies

npm install

Set Up Environment Variables

Create a .env file in the root directory and add the following:

# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up

# Liveblocks
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY=
LIVEBLOCKS_SECRET_KEY=

Replace placeholder values with your Clerk and Liveblocks credentials. Sign up on Clerk and Liveblocks to get your keys.

Running the Project

npm run dev

Open http://localhost:3000 in your browser to view the project. 🎉

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published