Build a real-time chat app with presence

Quickstart

Clone the repo and install dependencies:
# Clone repo
git clone https://github.com/instantdb/instant-examples

# Navigate into the chat example
cd instant-examples/chat

# Install dependencies
pnpm i
If you haven't already, be sure to log into the Instant CLI
pnpx instant-cli login
Now let's initialize a new app with the Instant CLI.
pnpx instant-cli init
We've provided a schema in instant.schema.ts that you can push to your app. You may have already pushed this during init in the previous step. If you answered 'no' to the prompt during init, or if you're unsure whether you pushed the schema, you can push it now.
pnpx instant-cli push
Run the seed script to populate the database with some initial data:
pnpm run seed
Finally, run the development server:
pnpm run dev
What did you think of this example? Are there any other apps you'd like to see implemented with InstantDB? Let us know and we'll do our best to add it!

Instant
Engineered in San Francisco