An open-source example application built with the Astro Framework, integrating UI libraries like React, Vue, and Svelte, alongside real-time technologies like Pusher.
This project demonstrates how to build a fully interactive web application while benefiting from server-rendered content.
Everything except the package
folder follows the standard Astro project structure.
package
FolderThe package
folder contains the core logic for both the frontend and backend:
AppContainer
in package/backend/backend.ts
.typescript-optional
.git clone https://github.com/adnanbrq/astro-chat-example.git
pnpm install
Copy .env.example to .env and update the required values.
cp .env.example .env
Create an app on Pusher, then add your Secret, Key, Cluster, and other credentials to the .env file.
docker compose up -d
pnpm run dev
Once the app is running, you can:
Sign Up / Sign In Create a Channel by entering a name in the left-side text field and pressing Enter.