Skip to content

chlp/ohmycode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

453 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OhMyCode

  • Keep notes — perfect for quick shared scratchpads
  • Write and execute code
  • Share with ease — just share the URL, no sign-up required
  • Collaborate in real-time — see who's editing and what they're typing
  • Change history — one snapshot per day, restore any version in one click
  • Markdown with live preview
  • Lightning-fast
  • Use public server or deploy in your private network
  • Connect your own private runner for code execution

Try it -> https://ohmycode.work/

OhMyCode preview

Technical Article: "OhMyCode: System Design Reflections"

Build and run

Run all services locally together (from the root of the repository):

docker compose -f api/docker/docker-compose.yml up -d --build --remove-orphans --force-recreate && \
docker compose -f runner/docker/docker-compose.yml up -d --build --remove-orphans --force-recreate

open http://localhost:52674/


Or configure and run separately:

  1. api & client:
    • cd api
    • cp api-conf-example.json api-conf.json and fill
    • cd docker && docker compose up --build --remove-orphans --force-recreate
      or GOOS=linux GOARCH=amd64 go build -o ohmycode_api cmd/main.go and run binary
  2. runner:
    • cd runner
    • cp conf-example.json conf.json and fill
    • cd docker && docker compose up --build --remove-orphans --force-recreate
      or GOOS=linux GOARCH=amd64 go build -o ohmycode_runner cmd/main.go and run binary

About

simple collaborative code editor with execution

Topics

Resources

License

Stars

Watchers

Forks