A real-time collaborative coding platform built for developers to code together seamlessly.
Letscode is a real-time code collaboration platform that enables multiple developers to work on the same code editor simultaneously. It combines live editing, secure authentication, collaborative sessions to create a smooth developer experience.
The platform is designed with a modern full-stack architecture using:
- Frontend: Next.js
- Backend: Express.js with TypeScrit
- Database: PostgreSQL
- ORM: Prisma ORM
letscode/
├── client/ # Next.js frontend
├── server/ # Express backend
├── .env
├── docker-compose.yml
├── README.mdCreate .env file by copying keys from .env.example in root, client and server. The .env.example file will have the details on how to get the values for the keys.
git clone https://github.com/Centinoughty/letscode.git # for https based cloningor
git clone git@github.com:Centinoughty/letscode.git # for ssh based cloningThis will create the image which are needed for running our application.
docker compose buildServer
cd server
npm installClient
cd client
npm installYou need to create a postgres DB natively using psql
Run prisma migrations
cd server
npx prisma migrate dev --name initGenerate prisma client
npx prisma generateStart all services
docker compose up -d --buildRun in detached mode
docker compose up -dTo see the logs,
docker compose logsStop services
docker compose downServer
cd server
npm run devClient
npm run dev