Helping paws find people.
A cozy space to share and find loving homes for stray and adoptable furry friends.
- Next.js
- TypeScript
- Prisma (ORM)
- Supabase (Database & Auth)
- Chakra UI and Tailwind CSS
-
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 the development server:
pnpm dev
-
The app will be running on http://localhost:3000
-
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' );