Add PartyKit to existing project
Follow this quick guide to add PartyKit to your existing app, and deploy it in just a few minutes.
Note that to run PartyKit, you need to have Node v. 17 or higher installed.
Add PartyKit to an existing app
Add PartyKit to your existing project using the following command in the project’s root directory:
npx partykit@latest init
Run a dev server
Run the following command in your terminal in your project’s directory to start the dev server:
npx partykit dev
Develop your server
Add desired behavior to your server, and connect it to the UI.
Deploy your app
Lastly, deploy your PartyKit server:
npx partykit deploy
To read more about deploying PartyKit server, check our deployment guide.
Welcome to the party, pal!