React + Express implementation of the provided Buddy Script login, registration, and feed task.
- React 19 + Vite + HeroUI + Tailwind 4
- React Query for server state
- Zustand for UI state
- Express + Prisma + Zod
- Supabase Postgres and private Storage
- Docker-ready for Dokploy
npm install
cp .env.example .env
npm run prisma:generate
npm run prisma:migrate
npm run devCreate a private Supabase Storage bucket named post-images, then add your Supabase URL and service role key to .env.
Build the Docker image in Dokploy from this repository. Configure the environment variables from .env.example, point DATABASE_URL and DIRECT_URL to Supabase Postgres, and set Google OAuth redirect URI to:
https://your-domain.com/api/auth/google/callbackEnd-to-end testing is implemented with Playwright and can be run from the root workspace. The testing suite covers user registration, login/logout, public/private post visibility rules, likes, comments, replies, and reactions modals.
To run the E2E tests:
npm run test:e2eThis will automatically launch the local backend and frontend development servers, execute all tests sequentially, and output the report.