Skip to content

nuxflare/durable-websockets

Repository files navigation

Nuxflare - Durable WebSockets

A Nuxt real-time chat demo using Cloudflare Durable Objects for WebSockets, deployed with Nuxflare. See the tutorial blog post for more details.

Project Structure

  • A Nuxt application for the frontend
  • WebSocket functionality powered by Cloudflare Durable Objects
  • Nuxflare handling the deployment process

Local Development

  1. Install dependencies:
bun install
  1. Start the development server:
bun run dev

Deployment

To deploy to Cloudflare Workers using Nuxflare:

bun nuxflare deploy

This will prompt you to create and set up a CLOUDFLARE_API_TOKEN if one isn't already configured.

GitHub Actions

We've also used Nuxflare to automatically configure GitHub Actions for continuous deployment.

With this preset, pushing to the main branch automatically deploys to the production environment.

The production domain is configured through GitHub Actions using the PROD_DOMAIN environment variable.

About

Real-time chat app with Nuxt + Cloudflare Durable Objects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published