Introducing Closet AI: the ultimate style companion 🌟. Upload images, choose your desired topwear or bottomwear, then watch as our cutting-edge AI replaces your outfit in an instant! 🔥 Seamlessly integrated with Supabase for secure authentication, lightning-fast image storage, and dynamic edge functions, our project is a game-changer for the Supabase Hackathon. Join us and revolutionize your wardrobe with the power of AI and Supabase!
Built for Supabase's Flutter Hackathon 2024
In our app, Supabase serves as the backbone for secure user authentication, efficient image storage, and enables dynamic edge functions, ensuring seamless and reliable functionality for our users' virtual wardrobe transformations.
create table
profile (
id bigint primary key generated always as identity,
username text not null,
email text not null,
date_joined timestamp with time zone default current_timestamp
);
-- Add policies for managing access to the storage bucket 'closet-generations'
create policy "Generations images are publicly accessible." on storage.objects
for select using (bucket_id = 'closet-generations');
create policy "Anyone can upload an generations." on storage.objects
for insert with check (bucket_id = 'closet-generations');
create policy "Anyone can update their own generations." on storage.objects
for update using ((select auth.uid()) = owner) with check (bucket_id = 'closet-generations');
Copy the contents of env.example
to a new file named .env
.
REPLICATE_KEY=''
SUPABASE_URL=''
SUPABASE_ANON_KEY=''
Get the keys for REPLICATE_KEY, SUPABASE_URL, and SUPABASE_ANON_KEY from your Supabase project and Replicate dashboard Replace the placeholders in the .env file with the actual keys. Then Continue with below steps
flutter pub get
to install dependencies.flutter run
to start the app.