Description

Postgres full-text search, image storage, and more.

npx boilerapp supabase-partner-gallery

Documentación

An example Next.js website that shows Postgres Full Text Search, next-image with Supabase Storage, and sending emails based on an insert trigger with Supabase Edge Functions.

How to Use

  1. Create a new Supabase project, or use an existing one
  2. Run the schema.sql file in the Supabase dashboard to create the relevant tables
  3. Update the environment variables (either in Vercel or locally) with Supabase URL and Anon Key
  • Locally: cp app/.env.local.example app/.env.local
  1. Deploy Supabase Edge Function for contact form notifications:
supabase link --project-ref your-project-ref
supabase secrets set SMTP_HOSTNAME="your.hostname.com" SMTP_PORT="2587" SMTP_USERNAME="your_username" SMTP_PASSWORD="your_password" SMTP_FROM="no-reply@example.com" SMTP_TO="you@example.com" FUNCTION_SECRET="your-random-secret"
supabase functions deploy contact-notification

Note: SMTP_PORT must be a port other than 25, 465, and 587 as Deno Deploy does not support outgoing connections to ports. AWS SES (port 2587) is recommended.

  1. Setup a Supabase Function Hook to trigger the function when a new row is inserted into partner_contacts
  2. Insert partners into the partners table.
  3. Celebrate together 🎉5c:T4d0,An example Next.js website that shows Postgres Full Text Search, next-image with Supabase Storage, and sending emails based on an insert trigger with Supabase Edge Functions.

How to Use

  1. Create a new Supabase project, or use an existing one
  2. Run the schema.sql file in the Supabase dashboard to create the relevant tables
  3. Update the environment variables (either in Vercel or locally) with Supabase URL and Anon Key
  • Locally: cp app/.env.local.example app/.env.local
  1. Deploy Supabase Edge Function for contact form notifications:
supabase link --project-ref your-project-ref
supabase secrets set SMTP_HOSTNAME="your.hostname.com" SMTP_PORT="2587" SMTP_USERNAME="your_username" SMTP_PASSWORD="your_password" SMTP_FROM="no-reply@example.com" SMTP_TO="you@example.com" FUNCTION_SECRET="your-random-secret"
supabase functions deploy contact-notification

Note: SMTP_PORT must be a port other than 25, 465, and 587 as Deno Deploy does not support outgoing connections to ports. AWS SES (port 2587) is recommended.

  1. Setup a Supabase Function Hook to trigger the function when a new row is inserted into partner_contacts
  2. Insert partners into the partners table.
  3. Celebrate together 🎉5d:T1c98,

Prix

Gratuit

FREE

Comentarios (0)

FAQ

Preguntas Frecuentes

¿Tienes una pregunta? Tenemos las respuestas. Si no encuentras lo que buscas, no dudes en contactarnos.

Boilerapp es una plataforma comunitaria dedicada a compartir boilerplates, starter kits y plantillas de proyectos para desarrolladores. Nuestro objetivo es simple: hacerte ahorrar tiempo en la configuración inicial (setup) para que puedas programar lo que realmente importa. Ya busques una base de código simple o un proyecto SaaS completo, lo encontrarás aquí.

¿Tienes otras preguntas?

Nuestro equipo está aquí para ayudarte. Contáctanos y te responderemos lo antes posible.

Partner Gallery | BoilerApp