✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

Full-stack real-time chat

Netlify Status

  • Data: PostgeSQL managed by Supabase @supabase_io (awsome real-time API).
  • Front-end: React + Vite
  • UI library: chakra-ui @chakra_ui
  • Hosting: Netlify
  • Country flags from Flagpedia

Install

npm install to setup dependencies

Supabase variables

Create a .env file with VITE_SUPABASE_URL and VITE_SUPABASE_KEY (see env.example)

Setup your Supabase project

The following database table is required:

FieldType
idBIGINT
usernameVARCHAR
textTEXT
countryVARCHAR
is_authenticatedBOOLEAN
timestamptimestamp

SQL query if not using the Supabase interface:

CREATE TABLE messages (
  id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
  username VARCHAR NOT NULL,
  text TEXT NOT NULL,
  country VARCHAR,
  is_authenticated BOOLEAN DEFAULT FALSE,
  timestamp timestamp default now() NOT NULL
);

Note: If you’re using Supabase interface, don’t forget to tick Enable Realtime setting after you created the table.

Setup GitHub authentication (optional)

Follow instrunction here

Dev

npm run dev to run server on port 3000

Build

npm run build to build the react client

Demo

https://random-chat.netlify.app

'demo'

Featured Templates

View More
AI Characters
Sarcastic AI Chat Bot
128 1440
AI Agents
AI Video Generator
249 1348 5.0
AI Assistants
Image to text with Claude 3
150 1122
AI Assistants
AI Chatbot Starter Kit v0.1
130 667
AI Engineering
Python Bug Fixer
119 1081

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.