Live, Interactive online coding workspace inspired by Codedamn playgrounds
- Figure out way to bundle node_modules type defs
- Current Typescript type defs support is crappy
Three main parts to setup
- Frontend
- Backend API
- Playground and proxy docker container
Create a .env.local file in the root directory
VITE_API_URL=
VITE_IS_SECURE=
VITE_PG_SUBDOMAIN=
bun install
bun run build
bun previewCreate a .env file with the following contents
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
DATABASE_URL=
BUCKET=
REGION=
ACCESS_KEY=
SECRET_KEY=
DOMAIN=
SECURE=
cd backend
bun install
bun run build
node dist/index.mjs
# OR
bun devcd nginx
chmod +x ./proxy.sh
./proxy.shcd container
docker build -t playgrounds:prod . -f Dockerfile.prod