https://github.com/rodneylab/sveltekit-ably-realtime-game
SvelteKit Ably: introduction to using Svelte with Ably and building a real-time ♟️ game or instant 💬 chat with serverless WebSockets.
https://github.com/rodneylab/sveltekit-ably-realtime-game
ably chat game real-time svelte sveltekit websockets
Last synced: over 1 year ago
JSON representation
SvelteKit Ably: introduction to using Svelte with Ably and building a real-time ♟️ game or instant 💬 chat with serverless WebSockets.
- Host: GitHub
- URL: https://github.com/rodneylab/sveltekit-ably-realtime-game
- Owner: rodneylab
- License: bsd-3-clause
- Created: 2023-03-16T16:47:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T09:52:06.000Z (over 1 year ago)
- Last Synced: 2025-01-08T13:52:41.731Z (over 1 year ago)
- Topics: ably, chat, game, real-time, svelte, sveltekit, websockets
- Language: Svelte
- Homepage:
- Size: 1.94 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README

SvelteKit Ably Real-time Game
[](https://app.netlify.com/sites/earnest-sprite-9ee6af/deploys)
# sveltekit-ably-realtime-game
[](https://stackblitz.com/github/rodneylab/sveltekit-ably-realtime-game)
Demo code for creating serverless WebSockets in SvelteKit with Ably for a game or real-time chat. The code accompanies the post on using SvelteKit with Ably. If you have any questions, please drop a comment at the bottom of that page.
## Building and previewing the site
If you're seeing this, you've probably already done this step. Congrats!
```bash
git clone https://github.com/rodneylab/sveltekit-ably-realtime-game.git
cd sveltekit-ably-realtime-game
pnpm install # or npm install
pnpm dev
```
## Building
```bash
pnpm run build
```
> You can preview the built app with `pnpm preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
Feel free to jump into the [Rodney Lab matrix chat room](https://matrix.to/#/%23rodney:matrix.org).