Coder Social home page Coder Social logo

g1-minor's Introduction

Introduction

This project is a developer-friendly real-time messaging application that emulates the functionality of Discord. It is built using modern web technologies and offers various features for seamless communication and collaboration.

Key Features

  • Real-time Messaging: Instantly chat with other users using Socket.io.
  • File Attachments: Send files and images as messages using UploadThing.
  • Message Editing & Deletion: Edit and delete messages in real-time.
  • Voice & Video Calls: Create text, audio, and video call channels.
  • One-on-One Conversations: Private one-on-one conversations between members.
  • Member Management: Kick members and change their roles.
  • Invite System: Generate unique invite links and set up an invite system.
  • Message Batching: Load messages in batches of 10 for seamless conversation.
  • Server Customization: Create and customize your server.
  • Stunning UI: Beautifully designed using TailwindCSS and ShadcnUI.
  • Responsiveness: Works flawlessly on both desktop and mobile devices.
  • Light & Dark Mode: Choose your preferred viewing mode.
  • Websocket Fallback: Ensures uninterrupted communication.
  • Database & ORM: Prisma for database operations.
  • MySQL Database: Utilize Planetscale for your MySQL database.
  • Authentication: Secure the app with Clerk.

Getting Started

To get started with this Discord Clone, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the necessary dependencies using Bun, our lightweight and energetic package manager. Just run bun install and let the magic happen!
  3. Configure your environment variables by creating a .env file based on the provided .env.example.
  4. Set up your database and authentication configurations.
  5. Run the application using npm start.
  6. Explore the features and start developing or testing your own Discord-like application.

Environment Variables

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=nclerk_publishable_key
CLERK_SECRET_KEY=clerk_secret_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/

# Database Configuration
DATABASE_URL=postgres://your_db_username:your_db_password@your_db_host/your_db_name?pgbouncer=true&connect_timeout=10
DIRECT_URL=postgres://your_db_username:your_db_password@your_db_host/your_db_name?connect_timeout=10

# UploadThing Configuration
UPLOADTHING_SECRET=uploadthing_secret
UPLOADTHING_APP_ID=uploadthing_app_id

# LiveKit Configuration
LIVEKIT_API_SECRET=livekit_api_secret
LIVEKIT_API_KEY=livekit_api_key
NEXT_PUBLIC_LIVEKIT_URL=wss://discord-clone.livekit.cloud

License

This Discord Clone repository is licensed under the MIT license. Please see the LICENSE file for more details.

Acknowledgements

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.