marnovandermaas / code-share

A platform for collaborative coding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code-share

A collaborative code editor

Quick start

Run arch-deploy.sh on an ArchLinux server. It should be easy to adapt the script for other distributions.

DOMAIN=example.com
GAPI_CLIENT_ID=xxx
./arch-deploy.sh $DOMAIN $GAPI_CLIENT_ID

Manual deployment

Build

docker build -t code-share .

Deploy

The container needs to be run in privileged mode since it needs to create bubblewrap sandboxes for code execution.

docker run -d --restart unless-stopped --privileged --env DEFAULT_PUBLIC=1 --env GAPI_CLIENT_ID=$GAPI_CLIENT_ID -v /var/code-share/db:/db -p 8080:8080 code-share

If you are not setting up a reverse proxy, you might also want to set --env HTTPS=1.

About

A platform for collaborative coding


Languages

Language:JavaScript 95.4%Language:CSS 1.8%Language:EJS 1.5%Language:Shell 1.1%Language:Dockerfile 0.2%