Follow these steps to get the multiplayer Simon Says game running locally and deployed to the cloud.
💡 Tip: Hover over any gray code block to see the copy button, or triple-click inside to select all text.
Text
Before starting, make sure you have:
Cmd + Space, type "Terminal", press EnterWin + R, type "cmd", press EnterCopy and paste this command:
git clone https://github.com/itayshmool/simon-game-app-cday.git
simon-game-app-cday folderIn Cursor, open the terminal: Press Ctrl + ` (backtick key)
npm run go
This will install everything and start the app. You should see:
🎉 The game is running (locally)!
Now let's put your game online so anyone can play!
First, you need the code in YOUR GitHub account (not the workshop account).
Run this command:
npm run publish
This will:
When done, you'll see your repository URL: https://github.com/YOUR_USERNAME/simon-game-app
⚠️ First time? If you see "GitHub CLI not installed", ask Cursor:
Help me install GitHub CLI and login
In Cursor chat (Cmd+L or Ctrl+L), copy and paste:
Deploy my simon-game-app to Render. Create a backend web service and a frontend static site using the render.yaml configuration
Cursor will:
⏳ Wait 5-10 minutes for the first deployment to complete.
If Cursor can't deploy, do it manually:
simon-game-app repositoryIn Cursor chat, copy and paste:
Get my Render services URLs and configure the environment variables: set FRONTEND_URL on simon-game-backend to the frontend URL, and set VITE_API_URL and VITE_SOCKET_URL on simon-game-frontend to the backend URL
Cursor will:
⏳ Wait for redeploy to complete (1-2 minutes).
If Cursor can't configure, do it manually:
FRONTEND_URL = your frontend URL (e.g., https://simon-game-frontend-xxx.onrender.com)VITE_API_URL = your backend URLVITE_SOCKET_URL = your backend URLLet's save your deployment details so you can reference them later.
In Cursor chat, copy and paste:
Create a .cursorrules-deployment file that documents my Render deployment: include the service names, URLs, and environment variables configuration. Get the actual values from Render.
Cursor will create a file with your deployment details like:
This is useful if you need to update or redeploy later!
You've successfully:
Your game is live! Share the link with friends and family.
| Problem | Solution |
|---|---|
npm run go fails |
Make sure Node.js is installed: node --version should show v18+ |
| App won't start | Close other terminals, try again |
| Can't connect on Render | Check environment variables are set correctly |
| WebSocket issues | Make sure URLs use https:// not http://
|
Ask Cursor! Open chat (Cmd+L) and describe your problem:
I'm getting this error: [paste error message]
Happy coding! 🚀