DevZero Logo
DevZero

Supabase

Supabase starter template for DevZero.

OPEN IN DEVZERO

What is Supabase?

Supabase is an open-source backend-as-a-service platform that enables developers to rapidly build and scale applications. It integrates a fully managed PostgreSQL database with real-time functionality, authentication systems, and auto-generated APIs. Licensed under Apache 2.0, Supabase provides an alternative to traditional backend infrastructures, allowing teams to focus on building features rather than managing backend complexities.

Features

  • Real-Time Functionality: Built-in support for live updates in your apps.
  • Scalable Database: Managed PostgreSQL database, customizable with extensions and queries.
  • Authentication: Ready-to-use user authentication and management features.
  • Instant APIs: Automatically generates RESTful APIs for your database.

Benefits

Supabase accelerates backend development by providing a fully managed, scalable platform. Its real-time capabilities and easy API generation allow developers to focus on building features and user experiences. With support for authentication and a powerful PostgreSQL database, Supabase saves time on infrastructure setup. Its open-source nature also offers the flexibility for customization and community-driven improvements, making it a cost-effective and developer-friendly solution for modern app development.

Supabase with DevZero

When used with DevZero, Supabase serves as a reliable backend solution tailored for dynamic development environments. By integrating with DevZero, it ensures real-time data synchronization and effective backend management, allowing developers to focus on creating dynamic front-end experiences. This combination supports smooth deployment and management, making it suitable for scalable applications and services.

Advantages

  • Integration with DevZero: Works seamlessly within dynamic development setups.
  • Real-Time Sync: Updates app data in real-time across various instances.
  • Backend Efficiency: Keeps backend management straightforward and productive.

Recipe for Supabase

Supabase

version: "3"
build:
  steps:
    - type: apt-get
      packages: ["build-essential", "curl", "git", "nano", "software-properties-common", "ssh", "sudo", "tar", "unzip", "vim", "wget", "zip", "docker-ce", "docker-ce-cli", "containerd.io"]
      extra_repositories:
        - key_url: https://download.docker.com/linux/ubuntu/gpg
          repository: https://download.docker.com/linux/ubuntu
    - type: command
      name: "Enable Docker Daemon"
      command: |
        usermod -aG docker devzero
        systemctl enable docker.service
        systemctl enable containerd.service
      directory: /home/devzero
      user: root

launch:
  steps:
  - type: command
    command: |-
        systemctl stop docker
        echo -e "{"data-root": "/home/devzero/docker"}" > /etc/docker/daemon.json
        systemctl start docker
    user: root
  - type: command
    command: |
        git clone --depth 1 https://github.com/supabase/supabase
        cd supabase/docker
        cp .env.example .env
        docker compose pull
        docker compose up -d --remove-orphans

On this page