Real-time collaborative pixel art editor built with Next.js, Socket.IO, TypeScript, and MongoDB.
This project is split into two parts:
client/: Next.js frontend application (deployed on Vercel)server/: Node.js + Socket.IO backend with MongoDB (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=productionCLIENT_URL=https://your-vercel-app.vercel.appCORS_ORIGIN=https://your-vercel-app.vercel.appMONGODB_URI=your-mongodb-uriCreate a MongoDB instance on Render.com or use MongoDB Atlas 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
MONGODB_URI=mongodb://localhost:27017/pixel-world
NEXT_PUBLIC_SERVER_URL=http://localhost:3001
NEXT_PUBLIC_APP_NAME=My Pixel World
MIT License