This template leverages Remix SPA Mode to build your app as a Single-Page Application using Client Data for all of you data loads and mutations. This is then deployed on to PartyKit, for multiplayer/real-time support.
📖 See the Remix Vite docs for details on supported features.
npx create-remix@latest --template partykit/remix-vite-starter
You will be running two processes during development:
- The Remix development server (powered by Vite)
- The PartyKit server
Both are started with one command:
npm run dev
If you want to check the production build, you can stop the dev server and run following commands:
npm run build
npm start
Then refresh the same URL in your browser (no live reload for production builds).
npm run deploy
If you don't already have a PartyKit account, you'll be prompted to create one during the deploy process.