Skip to content

IshaVenikar/safe

Repository files navigation

safe

Helping paws find people.

A cozy space to share and find loving homes for stray and adoptable furry friends.

Tech Stack

  • Next.js
  • TypeScript
  • Prisma (ORM)
  • Supabase (Database & Auth)
  • Chakra UI and Tailwind CSS

Setup

  • Install dependencies

    pnpm install
  • Follow these steps to setup prisma with supabase

  • Copy over example .env

    cp .env.example .env
    • Set the back-end URL, supabase URL and anon key

Run

Update schema

  • On updating schema.prisma, run the following to apply the migration to your DB and generate the Prisma Client:

    npx prisma migrate dev --name <migration-name>
  • Create a bucket and run the following scripts to store images:

    -- Replace 'images' with your bucket name, allows anyone with the image URL to view it
    update storage.buckets
    set public = true
    where id = 'images';
    
    -- Add a policy to allow uploads by authenticated users
    create policy "Authenticated users can upload"
    on storage.objects
    for insert
    to authenticated
    with check (
    bucket_id = 'furbaby-images'
    );

About

Helping paws find people

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published