A web application for generating custom headshots using AI and managing your favorite images.
- User authentication with Supabase
- AI-powered headshot generation using Flux 1.1 LoRA model on Replicate
- Save and favorite images
- Public gallery to view shared images
- Download functionality for saved images
- Frontend: Next.js 14+ with App Router, React 18, and TypeScript
- Styling: Tailwind CSS
- Authentication & Database: Supabase
- Image Generation: Replicate API (Flux 1.1 LoRA model)
- Hosting: Replit
-
Prerequisites
- Node.js 18.17.0 or later
- npm or yarn
-
Installation
# Clone the repository git clone <repository-url> cd powershift-photo-app # Install dependencies npm install # or yarn install
-
Environment Variables Create a
.env.localfile in the root directory with the following variables:NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key REPLICATE_API_TOKEN=your_replicate_api_token -
Running the Development Server
npm run dev # or yarn devOpen http://localhost:3000 in your browser.
- Push your code to GitHub
- Import the repository into Replit
- Set up Secrets in the Replit environment (equivalent to environment variables)
- Set the run command to
npm run dev
This project is proprietary and confidential.