tutorial··5 min read·WoWSQL Team

Best Backend for Hackathons: Auth and DB in 10 Minutes

The best backend for a hackathon is free, needs no card and gives auth, a database and live updates fast. A timed 10-minute WoWSQL setup, demo checklist.

The best backend for a hackathon is one you can set up before the opening talk ends: free, no credit card, with sign-up, a database and live updates in one place. Firebase, Supabase and WoWSQL all qualify. WoWSQL Free gives you a Postgres project with authentication, an auto-generated REST API and realtime channels at $0 with no card, and the timed checklist below takes you from an empty account to a working, secured backend in about 10 minutes. Competitor facts were checked on each vendor's site on 30 November 2026.

Key facts

  • WoWSQL Free (pricing, checked 30 Nov 2026): $0, 1 project, shared Postgres, 256 MB database, 512 MB files, 5 GB bandwidth, 10,000 monthly active users. Over a limit the project turns read-only: reads and deletes still work, writes and new sign-ups don't. The about page says the free tier needs no credit card.
  • Auth (docs): email and password, magic links, email or phone OTP, OAuth with 19 working providers, TOTP two-factor, optional Cloudflare Turnstile CAPTCHA.
  • API: every exposed table gets a PostgREST endpoint at https://<project>.wowsqlconnect.com/rest/v1/<table>. The anon key goes in the apikey header; the signed-in user's JWT goes in Authorization: Bearer so Row Level Security applies. There is no GraphQL API.
  • New projects start locked down: the Data API is off and new tables get RLS automatically, so you switch the API on and expose tables yourself (projects docs).
  • SDK: @wowsql/sdk 3.10.0 on npm (latest on 30 Nov 2026). Official SDKs also exist for Python, Go, Java, Kotlin, C#, PHP, Ruby, Rust, Swift and Flutter/Dart.
  • Regions: Mumbai (ap-south-1), US East (us-east-1) and Frankfurt (eu-central-1). There is no UK region.

What a hackathon backend actually needs

A hackathon is a 24- or 48-hour sprint judged on a live demo, so the usual "best backend" advice doesn't apply. What matters:

  1. No card, no approval. A teammate on a student account should be able to create it.
  2. Minutes to the first API call. Every minute on setup is a minute not spent on the idea.
  3. Auth and data in one place. Two vendors means two sets of keys and docs at 3 a.m.
  4. Something that looks live. Judges remember a screen that updates by itself.
  5. Safe defaults. Your repo is often public. Assume someone will try your anon key.
  6. Free limits you won't hit by Sunday. Hackathon traffic is tiny; storage and function quotas are what usually bite.

Hackathon backends compared

Firebase (Spark) Supabase (Free) Convex (Free & Starter) WoWSQL (Free)
Price / card $0, "no payment method needed" $0 $0, pay as you go $0, no credit card
Database Firestore (documents): 1 GiB stored, 50K reads and 20K writes a day Postgres, 500 MB per project Document-relational, 0.5 GB included Postgres, 256 MB
Auth on free 50K MAU no-cost 50,000 MAU Not listed on the pricing page 10,000 MAU
File storage on free Cloud Storage shows "Not applicable" on Spark 1 GB 1 GB 512 MB
Server code on free Cloud Functions "Not applicable" on Spark Edge Functions 1M function calls included Compute Functions (5 execution hours a month on Free, per the overview docs)
Projects on free Not a limit on the pricing page 2 active; paused after 1 week of inactivity Not a limit on the pricing page 1
SQL No Yes No Yes

Sources, all read 30 November 2026: Firebase pricing, Supabase pricing, Convex pricing, WoWSQL pricing.

Honest verdict. If your team already knows Firebase and the app is mobile-first with offline needs, Firebase is a fine hackathon pick, as long as you don't need Storage or Functions without upgrading to Blaze. Supabase Free is the most generous Postgres option (twice the projects, a bigger database, 5x the MAU of WoWSQL Free) and has the largest pool of tutorials. Convex is great if the whole team writes TypeScript and wants reactive queries. WoWSQL is a good fit when you want SQL, a no-card start and one place for auth, data and realtime, and its 256 MB database is plenty for a weekend.

The 10-minute speed-run

The times are targets for one person with Node.js installed, not a benchmark. Do steps 1 to 4 before anyone writes frontend code: then the backend is proven with curl, and the frontend people can start against a real API.

0:00 to 1:30: create the project

  1. Sign up at app.wowsql.com/signup and create a project. Pick the region nearest the venue's judges and users: Mumbai for India, US East for North America, Frankfurt for Europe and the UK.
  2. From the project's Connect menu, copy the project URL and the anon key (wowsql_anon_…). Leave the service key alone: it bypasses RLS and never goes in a frontend or a public repo.
  3. Open Project Settings → API and switch on Enable Data API. New projects start with it off, and until you switch it on every REST call returns 403 DATA_API_DISABLED.

1:30 to 3:00: switch on authentication

Open Authentication in the dashboard and enable it. Email and password is enough for a demo. If you have five spare minutes later, add Google or GitHub sign-in; each provider needs its client ID and secret configured first, or the OAuth call returns 400.

3:00 to 5:00: paste the schema

This is a voting board: anyone can see ideas, signed-in users add ideas and vote once each. Paste it into the SQL editor (or describe it to MERA, the AI SQL assistant in the editor, and compare its output with this).

-- Hackathon schema: ideas + one vote per user
create table public.ideas (
  id         bigint generated always as identity primary key,
  user_id    uuid not null default auth.uid(),
  title      text not null check (char_length(title) between 1 and 140),
  created_at timestamptz not null default now()
);

create table public.votes (
  idea_id bigint not null references public.ideas (id) on delete cascade,
  user_id uuid   not null default auth.uid(),
  primary key (idea_id, user_id)
);

alter table public.ideas enable row level security;
alter table public.votes enable row level security;

create policy "read ideas" on public.ideas for select using (true);
create policy "add own idea" on public.ideas for insert to authenticated
  with check (user_id = auth.uid());
create policy "read votes" on public.votes for select using (true);
create policy "vote as yourself" on public.votes for insert to authenticated
  with check (user_id = auth.uid());
create policy "remove own vote" on public.votes for delete to authenticated
  using (user_id = auth.uid());

-- Expose the tables to the API roles (or tick them in the Table Editor)
grant select on public.ideas, public.votes to anon, authenticated;
grant insert on public.ideas to authenticated;
grant insert, delete on public.votes to authenticated;

Two details do the security work. user_id defaults to auth.uid(), so the client never sends it, and the with check policies reject a request that tries to set someone else's ID. The composite primary key on votes makes a second vote by the same user fail with a 409.

5:00 to 7:00: prove it with curl

P=https://myhack.wowsqlconnect.com   # your project URL
ANON=wowsql_anon_your_key_here        # anon key from Connect

# 1. Create a test user and grab an access token
curl -s -X POST "$P/api/auth/signup" -H "apikey: $ANON" -H "Content-Type: application/json" \
  -d '{"email":"judge@example.com","password":"Hackathon#2026"}'
TOKEN=$(curl -s -X POST "$P/api/auth/login" -H "apikey: $ANON" -H "Content-Type: application/json" \
  -d '{"email":"judge@example.com","password":"Hackathon#2026"}' | jq -r .access_token)

# 2. Write as that user (RLS fills and checks user_id)
curl -s -X POST "$P/rest/v1/ideas" -H "apikey: $ANON" -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -H "Prefer: return=representation" \
  -d '{"title":"Bus ETA bot"}'

# 3. Read the board with vote counts, no login needed
curl -s "$P/rest/v1/ideas?select=id,title,votes(count)&order=created_at.desc" -H "apikey: $ANON"

If step 3 returns your row and step 4 returns it with "votes":[{"count":0}], the backend is done. The embedded votes(count) is PostgREST's way to get a count without writing a view.

7:00 to 9:00: drop in the client file

npm install @wowsql/sdk@3.10.0
// hack.ts: the whole hackathon backend client in one file (@wowsql/sdk 3.10.0)
import { ProjectAuthClient, WowSQLClient } from '@wowsql/sdk'

const PROJECT_URL = process.env.WOWSQL_URL ?? 'https://myhack.wowsqlconnect.com'
const ANON_KEY = process.env.WOWSQL_ANON_KEY ?? 'wowsql_anon_your_key_here'

export const auth = new ProjectAuthClient({ projectUrl: PROJECT_URL, apiKey: ANON_KEY })
const db = new WowSQLClient({ projectUrl: PROJECT_URL, apiKey: ANON_KEY }) // used for realtime

// REST helper: anon key in apikey, the user's JWT as Bearer, so RLS sees auth.uid()
async function rest<T>(path: string, init: RequestInit = {}): Promise<T> {
  const token = auth.getSession().accessToken
  const res = await fetch(`${PROJECT_URL}/rest/v1/${path}`, {
    ...init,
    headers: {
      apikey: ANON_KEY,
      ...(token ? { Authorization: `Bearer ${token}` } : {}),
      'Content-Type': 'application/json',
      ...init.headers,
    },
  })
  const text = await res.text()
  if (!res.ok) throw new Error(`${res.status} ${text}`)
  return (text ? JSON.parse(text) : null) as T
}

export type Idea = { id: number; title: string; user_id: string; created_at: string; votes: { count: number }[] }

export const listIdeas = () =>
  rest<Idea[]>('ideas?select=id,title,user_id,created_at,votes(count)&order=created_at.desc&limit=50')

export async function addIdea(title: string) {
  const [idea] = await rest<Idea[]>('ideas', {
    method: 'POST',
    headers: { Prefer: 'return=representation' },
    body: JSON.stringify({ title }),
  })
  void board.send({ type: 'broadcast', event: 'changed', payload: { id: idea.id } })
  return idea
}

export async function vote(ideaId: number) {
  await rest('votes', { method: 'POST', body: JSON.stringify({ idea_id: ideaId }) })
  void board.send({ type: 'broadcast', event: 'changed', payload: { id: ideaId } })
}

// Live board: every client refetches when anyone broadcasts "changed"
const board = db.realtime.channel('board')
export function onBoardChange(refresh: () => void) {
  board.on('broadcast', { event: 'changed' }, () => refresh()).subscribe()
}

Why fetch for reads and writes instead of db.table('ideas')? In SDK 3.10.0, WowSQLClient sends the key you give it as both apikey and the bearer token, so its queries run as the anon role. That's fine for public reads, but writes need the user's token so the policies can see auth.uid(). The helper above does that in a dozen lines.

9:00 to 10:00: make it live

Call onBoardChange(() => render(await listIdeas())) when the page loads. When anyone adds an idea or votes, every open screen refetches within a moment. The board uses a broadcast channel rather than row-change events on purpose: WoWSQL's realtime service only streams row changes to anon or signed-in clients for tables without RLS, because the event stream can't filter rows per user. A "something changed, refetch" broadcast keeps RLS in charge of what each person sees. Broadcast payloads are capped at 64 KiB (realtime docs).

Splitting the work across a team of four

  • One backend owner. One person runs schema changes. Everyone else uses the API. Two people editing tables in the dashboard at 2 a.m. is how columns disappear.
  • Share the project, not the password. The projects docs describe inviting teammates by email with a role (Owner, Admin, Member or Viewer). Give frontend people Member or Viewer.
  • Keys in .env, not in Git. Put the project URL and anon key in .env.local and commit .env.example with placeholders. The service key stays on the backend owner's laptop or in a Compute Function's secrets.
  • Keep schema.sql in the repo. If someone breaks the database, you can rebuild it in two minutes.
  • Seed script. A file of 20 realistic rows makes the demo look like a product, not a test.

Demo-day checklist

Run through this an hour before judging:

  • Anon key test. curl an insert with only the anon key. It should fail (401 or 403). If it succeeds, a policy or grant is too open.
  • Limits. Free projects turn read-only over a limit, so sign-ups and writes stop. A weekend demo won't get near 10,000 MAU or 256 MB, but uploading test videos can fill 512 MB of files fast.
  • Demo accounts. Two accounts, already signed in on two devices, so the live update is visible side by side.
  • Wi-Fi fallback. Venue Wi-Fi fails. Record a 60-second screen capture of the working flow.
  • No service key in the bundle. Search the built frontend for wowsql_service_.
  • Region sanity. If the API feels slow on stage, check you didn't create the project in a region on the other side of the world.

After the hackathon

Most hackathon projects end on Sunday night, and that's fine. Before you walk away:

  • Export. Free has no platform backups, so take your own copy. pg_dump with the connection string from the Connect menu gives a full copy; the backups guide has a script.
  • Keep going? Upgrading to Pro ($25 a month) adds a dedicated Postgres instance, 10 GB of database storage and daily backups kept for 7 days.
  • Or delete it. If you used real email addresses from judges or testers, delete the project when you're done.

Related guides

FAQ

What is the best backend for a hackathon?

One that is free, needs no card and gives you auth, a database and live updates in a single project. Firebase Spark, Supabase Free and WoWSQL Free all work. Pick Firebase if your team knows it and needs offline mobile, Supabase for the biggest free Postgres tier, and WoWSQL for SQL plus auth and realtime with a no-card, 10-minute setup.

What is the quickest backend to set up for a hackathon project?

A backend-as-a-service you can test with curl in minutes. On WoWSQL: create a project, switch on the Data API, enable Authentication, paste a schema with RLS policies, then sign up a test user and insert a row with curl. That whole loop takes about 10 minutes.

Is there a free database for hackathons that doesn't need a credit card?

Yes. WoWSQL Free is $0 with no credit card and includes a 256 MB Postgres database with auth and REST APIs. Firebase's Spark plan also needs no payment method. Supabase has a $0 Free plan with a 500 MB database.

What is a good hackathon tech stack in 2026?

A frontend you already know (React, Vue, Svelte or Flutter), a hosted backend-as-a-service for auth and data, and static hosting for the frontend. Keep the backend to one vendor, keep the schema in a SQL file in the repo, and add live updates with a broadcast channel.

Can my whole hackathon team use one WoWSQL project?

Yes. Invite teammates to the project with a role (Owner, Admin, Member or Viewer per the projects docs) instead of sharing a login, and have one person own schema changes. The free plan allows one project per account.

What happens to my hackathon project after the event?

A Free project keeps working within the free limits, but it has no platform backups, so export it with pg_dump if you want to keep the data. Upgrade to Pro if the project continues, or delete it if you collected real users' emails.

Create a free WoWSQL project · Pricing · Auth docs