Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rust-sol-dev/svelte-real-time-chat
About Real Time Chat app using Svelte🏎️ and Supabase. Providing SASS💅 for styling UI components. Supporting Vite💠Bundler at default
https://github.com/rust-sol-dev/svelte-real-time-chat
sass supabase svelte ts typescript vercel vite
Last synced: about 21 hours ago
JSON representation
About Real Time Chat app using Svelte🏎️ and Supabase. Providing SASS💅 for styling UI components. Supporting Vite💠Bundler at default
- Host: GitHub
- URL: https://github.com/rust-sol-dev/svelte-real-time-chat
- Owner: Rust-Sol-Dev
- License: mit
- Created: 2024-03-28T19:57:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-01T09:02:40.000Z (9 months ago)
- Last Synced: 2024-08-07T10:10:14.332Z (5 months ago)
- Topics: sass, supabase, svelte, ts, typescript, vercel, vite
- Language: Svelte
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚡Supachat
A real-time chat app using **[Svelte](https://svelte.dev/)** and **[Supabase](https://supabase.com/)**
## 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`