GithubHelp home page GithubHelp logo

ramabie / supachat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lleweraf/supachat

1.0 1.0 0.0 1.36 MB

Realtime chat app using Sveltekit and Supabase

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

License: Apache License 2.0

HTML 1.70% Svelte 54.83% JavaScript 19.61% SCSS 18.34% CSS 5.53%

supachat's Introduction

⚡Supachat

A real-time chat app using Svelte and Supabase

Installation

npm install to initialize all dependencies

Supabase setup

Create a .env file with variables VITE_PUBLIC_SUPABASE_URL and VITE_PUBLIC_SUPABASE_ANON_KEY (These can be located in your Supabase project under Settings > API)

Supabase project

Tables are pretty much simple and direct to the point (just to avoid using inner joins and all)

For the Global chat table

Field Type
id (primary) int8
username varchar
created_at timestampz (default value is: now()
message text
replied_to_id int2
replied_to_username varchar
replied_to_message text

For the users table

Field Type
id (primary) int8
created_at timestampz (default value is: now()
username varchar

Developing and building

Start development server npm run dev and npm run build

supachat's People

Contributors

lleweraf avatar cotyhamilton avatar

Stargazers

M. Arifin A A avatar

Watchers

James Cloos avatar

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.