Skip to content

BipashaBi/SyncSpace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SyncSpace

A real-time collaborative document editor. Create a document, share the link, and edit together live.

Live: https://syncspace.bipashab497.workers.dev


Setup

Requirements: Go 1.20+, Node.js 18+, MongoDB Atlas account

Backend

cd backend
go mod tidy
go run .

Set this environment variable before running:

MONGO_URI=mongodb+srv://your-connection-string

Server runs on http://localhost:8080.

Frontend

cd frontend
npm install
npm run dev

App runs on http://localhost:5173.

By default the frontend points to http://localhost:8080. If you deploy the backend, update the URLs in src/components/Editor.tsx and src/pages/HomePage.tsx to match your backend URL. Use wss:// instead of ws:// for WebSocket in production.


Deploying

Backend — Render

  • Root directory: backend
  • Build command: go build -o server .
  • Start command: ./server
  • Add MONGO_URI in the Environment tab

Frontend — Cloudflare Workers

npm run build
npx wrangler deploy

  • No login required — anyone with the document URL can edit it
  • Free Render instances sleep after inactivity; first load may take ~50 seconds
image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors