Feature Highlights
Upload and manage photos in a gallery
- Upload an image with a title, description, link and category
- Images stored in Sanity CMS with metadata
- Sanity's CDN for image delivery and optimization
Stack
- React: Component framework for building the UI.
- Sanity.io: Headless CMS for users, posts, saves and comments.
- Tailwind CSS: Utility-first CSS for responsive design and styling.
- Google OAuth: Authentication for one-click login with Google accounts.
- React Router: Client-side routing for gallery and profile pages.
- Netlify: Hosting with continuous deployment.
Use Cases
- Learning how to build a photo sharing app with React and Sanity
- Understanding headless CMS architecture for managing users and content
- Building a social photo platform with saves, comments and categories
How to Use
- Clone:
git clone https://github.com/dhruba-datta/photoBooth - Install deps:
npm install - Configure environment: Set Sanity project vars and Google OAuth credentials in your
.env. - Start dev server:
npm run dev - Build & deploy (Netlify):
npm run buildthen connect repo on Netlify for CI/CD.




