This is a Next.js 14 image editor powered by OpenAI's DALL-E 2 model. It lets users upload photos, select areas and edit them by writing prompts. The app comes with user accounts and is ready to accept payments with Stripe subscriptions.
Read the full step-by-step tutorial on how we built this app from scratch here.
To run the app, follow these steps
npm install
the dependencies in this folder- Duplicate the
.env.local.example
file and rename it to.env.local
.Enter your Reflow store ID, OpenAI API key and add a secret 32 char string. One way to generate a random string on unix-like systems is with this command:tr -dc A-Za-z0-9 </dev/urandom | head -c 32
- Run
npx prisma generate
to generate the Prisma Client - Run
npx prisma migrate dev
to create the database - Start the development server with
npm run dev
- Open http://localhost:3000 with your browser to see the app running.