Generate, store, and download logos with Dalle3 and supabase. This template features image generation with seamless auth and storage, plus a built-in token economy. Perfect for building your own logo marketplace.
Utilize OpenAI's DALL-E 2 and 3 models via API for high-quality, customizable image generation.
Implement secure, scalable image storage using Supabase's S3-compatible object storage.
Implement a flexible credit system using Supabase database for user balance management and transaction logging.
</div> <div id="supabase" > ## SupabaseWatch the Onboarding Video to spin up quickly
Mac: brew install supabase/tap/supabase
Windows:
powershellscoop bucket add supabase https://github.com/supabase/scoop-bucket.git scoop install supabase
Linux: brew install supabase/tap/supabase
NPM/Bun: npx supabase <command>
Create a Supabase project at Supabase Dashboard, or via the CLI:
shellnpx supabase projects create -i "your-logo-app"
Your Org ID can be found in the URL after selecting an org.
Link your CLI to the project:
shellnpx supabase init npx supabase link
Select the project you just created.
.env.local
for Next.jsStore Supabase URL & public anon key in .env.local
for Next.js:
shellNEXT_PUBLIC_SUPABASE_URL=<api-url> NEXT_PUBLIC_SUPABASE_ANON_KEY=<anon-key>
You can get the project API URL and anonymous key from the API settings page.
Setup DB schema:
This will run all of the migrations located in the
supabase/migrations
directory
shellsupabase db push
.env
variables are configured correctlybashcp .env.local.example .env.local
bash# Example Supabase Config NEXT_PUBLIC_SUPABASE_URL="https://examplesqnwerasdfaser.supabase.co" SUPABASE_PROJECT_ID="examplesqnwerasdfaser" NEXT_PUBLIC_SUPABASE_ANON_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.." OPENAI_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
For more details on obtaining your OpenAI API key, refer to the OpenAI API documentation.
</div>In a separate terminal, run the following commands:
shellpnpm i
shellpnpm run dev
Open http://localhost:3000 in your browser.
To add new products to your directory, simply visit the submission page:
</div>You now have a fully seeded database with all the data you need to start building your own logo directory.
To give your directory a unique look, create a custom color theme:
Design Your Theme
Visit the custom shadcn theme page to design your theme.
Apply Your Theme
Once you have your theme, copy the relevant CSS and paste it into your app/globals.css
file, replacing lines 5-67.
Create a new repository and push the project to GitHub.
Go to Vercel and import the GitHub repository: Deploy.
Set up Environment Variables in Vercel
Go to your project settings on Vercel and set up the environment variables by copying the content from your .env.local
file. Ensure the following variables are included:
NEXT_PUBLIC_SUPABASE_URL
- Your Supabase API URLNEXT_PUBLIC_SUPABASE_ANON_KEY
- Your Supabase anonymous keySUPABASE_PROJECT_ID
- Your Supabase project IDOPENAI_API_KEY
- Your OpenAI API KeyHere's an example of what your environment variables might look like:
plaintextNEXT_PUBLIC_SUPABASE_URL="https://abcd1234.supabase.co" NEXT_PUBLIC_SUPABASE_ANON_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." SUPABASE_PROJECT_ID="abcd1234" OPENAI_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Deploy the Project
Once your environment variables are set, you can deploy your project. Vercel will handle the build and deployment process for you.
Access Your Live Application
After deployment, you can access your live application through the URL provided by Vercel. Your application should now be live and ready to use.
Welcome to the Logo GPT!
Follow the steps outlined in this README to deploy and customize your directory app. If you have any questions or run into issues, feel free to reach out for support on Twitter: https://x.com/nolansym
Cheers! Stoked to see what you build!
<a href="#top" style="text-decoration: none; color: #007bff; font-weight: bold;">Scroll to top</a>
One-time payment, lifetime access
One-time payment, 1 year of updates