Git Product home page Git Product logo

the-gallery's Introduction

Supabase Partner Gallery Example

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.

Partner Gallery screenshot

Deploy with Vercel

Usage

  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="[email protected]" SMTP_TO="[email protected]" 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 function hook setup 1 function hook setup 2
  2. Within Vercel project settings, ensure Framework Preset is set to Next.js and Root Directory is set to app.
  3. Insert partners into the partners table.
  4. Celebrate together ๐ŸŽ‰

the-gallery's People

Contributors

alaister avatar thorwebdev avatar jakefuentes avatar mertasan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.