Skip to content
/ coder Public

๐Ÿš€ Cloud IDE - Code anywhere with AI assistance, no local setup required

License

Notifications You must be signed in to change notification settings

Atticus6/coder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Coder - Cloud IDE

A browser-based coding environment with AI assistance. Write, edit, and run code directly from your browser without any local setup.

Features

  • ๐ŸŒ Code from anywhere with a web browser
  • ๐Ÿค– AI-powered coding assistant
  • ๐Ÿ“ Full-featured code editor with syntax highlighting
  • ๐Ÿ” GitHub authentication
  • ๐Ÿ—„๏ธ PostgreSQL database integration

Quick Start

Prerequisites

  • Docker installed on your server
  • PostgreSQL database
  • GitHub OAuth App (for authentication)

Environment Variables

Create a .env file with the following:

DATABASE_URL="postgres://user:password@host:5432/dbname"
BETTER_AUTH_SECRET="your-random-secret-key"
BETTER_AUTH_GITHUB_CLIENT_ID="your-github-client-id"
BETTER_AUTH_GITHUB_CLIENT_SECRET="your-github-client-secret"
BASE_URL="https://your-domain.com"
AI_TOKEN="your-ai-api-key"

Deploy with Docker Compose (Recommended)

Create a docker-compose.yml file:

services:
  coder:
    image: ghcr.io/atticus6/coder:latest
    ports:
      - "3000:3000"
    environment:
      - DATABASE_URL=postgres://postgres:postgres@db:5432/coder
      - BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
      - BETTER_AUTH_GITHUB_CLIENT_ID=githubClientId
      - BETTER_AUTH_GITHUB_CLIENT_SECRET=githubClientSecret
      - BASE_URL=http://localhost:3000
      - AI_TOKEN=******
      - WORKFLOW_TARGET_WORLD="@workflow/world-postgres"
      - WORKFLOW_POSTGRES_URL=postgres://postgres:postgres@db:5432/coder
      - WORKFLOW_POSTGRES_JOB_PREFIX="workflow_"
      - WORKFLOW_POSTGRES_WORKER_CONCURRENCY=10
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped

  db:
    image: postgres:16-alpine
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=coder
    volumes:
      - postgres_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 5
    restart: unless-stopped

volumes:
  postgres_data:

Start the services:

docker compose up -d

License

MIT

About

๐Ÿš€ Cloud IDE - Code anywhere with AI assistance, no local setup required

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages