diff --git a/.example.env b/.example.env index 3b812e93..c6d58ec5 100644 --- a/.example.env +++ b/.example.env @@ -3,3 +3,18 @@ REPLICATE_API_KEY= # Optional, if you're doing rate limiting UPSTASH_REDIS_REST_URL= UPSTASH_REDIS_REST_TOKEN= + +# Optional, if you're planning to use Upload.io (you need to if you have 100+ uploads) +NEXT_PUBLIC_UPLOAD_API_KEY= + +# Optional, if you want to add auth + DB +NEXTAUTH_SECRET= +GOOGLE_CLIENT_ID= +GOOGLE_CLIENT_SECRET= +DATABASE_URL= +SHADOW_DATABASE_URL= +NEXTAUTH_URL= + +# Pricing +STRIPE_SECRET_KEY= +STRIPE_WEBHOOK_SECRET= diff --git a/.gitignore b/.gitignore index 3a05d510..9759bd18 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,6 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts .env + +# Scripts +getUsersEmails.ts diff --git a/README.md b/README.md index cae57d48..0da656b1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [roomGPT.io](https://roomGPT.io) -This project generates designs of your room with AI. +roomGPT helps design rooms in seconds with AI. [![Room GPT](./public/screenshot.png)](https://roomGPT.io) @@ -42,8 +42,21 @@ Then, run the application in the command line and it will be available at `http: npm run dev ``` +## Auth setup + +1. Use `openssl rand -base64 32` to generate NEXTAUTH_SECRET +2. Add DB URL and SHADOW DB URL from Neon +3. Create a new project in console.cloud.google.com +4. Click configure consent screen in API credentials page and click external +5. Add an app name, do not upload logo, add authorized domain +6. Publish app +7. Create credentials -> Oauth client ID +8. Run npx prisma db push && prisma migrate dev && prisma generate + ## One-Click Deploy Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples): -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Nutlope/roomGPT&env=REPLICATE_API_KEY&project-name=room-GPT&repo-name=roomGPT) +> Note: You will need to configure auth by following the setup above by using Neon and next-auth and Stripe for payments in order to deploy with Vercel. + +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Nutlope/roomGPT&env=REPLICATE_API_KEY,NEXTAUTH_SECRET,GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET,DATABASE_URL,SHADOW_DATABASE_URL,NEXTAUTH_URL&project-name=room-GPT&repo-name=roomGPT) diff --git a/components/DropDown.tsx b/components/DropDown.tsx index d341124f..4db7c0f4 100644 --- a/components/DropDown.tsx +++ b/components/DropDown.tsx @@ -17,7 +17,6 @@ interface DropDownProps { themes: themeType[] | roomType[]; } -// TODO: Change names since this is a generic dropdown now export default function DropDown({ theme, setTheme, themes }: DropDownProps) { return (