Real-time collaborative pixel art editor built with Next.js, Socket.IO, TypeScript, and Redis.
This project is split into two parts:
client/
: Next.js frontend application (deployed on Vercel)server/
: Node.js + Socket.IO backend with Redis (deployed on Render.com)cd server
npm install
cp env.example .env
npm run dev
cd client
npm install
cp env.local.example .env.local
npm run dev
Create a new Web Service on Render.com
Connect your GitHub repository
Set build command: cd server && npm install && npm run build
Set start command: cd server && npm start
Add environment variables:
NODE_ENV=production
CLIENT_URL=https://your-vercel-app.vercel.app
CORS_ORIGIN=https://your-vercel-app.vercel.app
REDIS_URL=your-redis-url-from-render
Create a Redis instance on Render.com and connect it to your server
NEXT_PUBLIC_SERVER_URL
: Your Render.com server URLNEXT_PUBLIC_APP_NAME
: My Pixel WorldPORT=3001
NODE_ENV=development
CORS_ORIGIN=*
CLIENT_URL=http://localhost:3000
REDIS_URL=redis://localhost:6379
NEXT_PUBLIC_SERVER_URL=http://localhost:3001
NEXT_PUBLIC_APP_NAME=My Pixel World
MIT License