You can use whatever backend you want. But, I recommend using Supabase.

If you want to see how do you setup Supabase, go to Quick Start.

1

You need to refer lib/supabase.ts file. Example:

import { supabase } from '@/lib/supabase';
2

You can create queries like below:

import { supabase } from '@/lib/supabase';

const { data, error } = await supabase.from('users').select('*');

For more information, you can go to the Supabase Documentation.

Thats it!