More Premium Hugo Themes Premium Svelte Themes

Supachat

Realtime chat app using Sveltekit and Supabase

Supachat

Realtime chat app using Sveltekit and Supabase

Author Avatar Theme by lleweraf
Github Stars Github Stars: 79
Last Commit Last Commit: Feb 16, 2022 -
First Commit Created: Dec 18, 2023 -
Supachat screenshot

Overview

Supachat is a real-time chat app built using Svelte and Supabase. The app allows users to engage in real-time chat conversations. This product analysis will provide an overview of the key features, installation guide, and a summary of the application.

Features

  • Real-time chat: Users can engage in real-time chat conversations with other users.
  • Supabase integration: The app utilizes Supabase, providing a database backend for storing chat messages and user information.
  • Simple table structure: The tables used in the Supabase project are straightforward, avoiding complex joins to ensure efficient data retrieval.

Installation

To install Supachat, follow these steps:

  1. Run npm install to initialize all dependencies.
  2. Set up Supabase:
    • Create a .env file with variables VITE_PUBLIC_SUPABASE_URL and VITE_PUBLIC_SUPABASE_ANON_KEY.
    • Retrieve these values from your Supabase project under Settings > API.
  3. Create necessary tables in the Supabase project:
    • For the “Global chat” table:
      • Fields:
        • id (primary key) of type int8
        • username of type varchar
        • created_at of type timestampz with default value now()
        • message of type text
        • replied_to_id of type int2
        • replied_to_username of type varchar
        • replied_to_message of type text
    • For the “users” table:
      • Fields:
        • id (primary key) of type int8
        • created_at of type timestampz with default value now()
        • username of type varchar
  4. Start development server with npm run dev and build with npm run build.

Summary

Supachat is a real-time chat app that utilizes Svelte and Supabase. It offers real-time chat functionality, seamless integration with Supabase for data storage, and a straightforward table structure for efficient data retrieval. Installing the app involves setting up dependencies, configuring Supabase, and creating the necessary database tables. With Supachat, users can enjoy real-time chat conversations in a user-friendly environment.