Preparing your workspace
Supabase is an open-source backend platform built around PostgreSQL and provides database, authentication, storage, realtime, and other backend capabilities.
Supabase gives developers a ready-to-use backend built around PostgreSQL. Instead of building every backend service from scratch, an application can use Supabase Database for relational data, Auth for authentication, Storage for files, Realtime for live updates, and APIs for database access. Supabase does not remove the need to understand backend concepts. Developers still need to understand database design, permissions, authentication, validation, and application architecture.
A learning platform can use Supabase for users, organizations, courses, progress, authentication, profile images, and realtime notifications.
import { createClient } from '@supabase/supabase-js';
const supabase = createClient(
process.env.SUPABASE_URL,
process.env.SUPABASE_ANON_KEY
);
console.log('Supabase client created');The application creates a Supabase client that can be used to access configured backend services.