Canva 具有可自定义的模板和由 AI 提供的功能,可轻松进行视觉创作。
Here is the folder structure of this app.
….env.local file in root directory..env.local:…This disables Next.js telemetry (optional).
NEXT_TELEMETRY_DISABLED1 (default for disabling telemetry)Set the base URL where your app will be running locally or in production.
To get the Unsplash API Access Key, follow these steps:
To get the UploadThing token:
Generate both values with:
openssl rand -hex 32AI_SETTINGS_COOKIE_NAME: Cookie name used to store encrypted API keys.VERIFICATION_SECRET: Secret used to encrypt/decrypt the cookie payload. Keep this secret safe.This is automatically generated by npx auth or pnpm dlx auth and used for session encryption. Keep this secret safe.
To obtain GitHub OAuth credentials:
http://localhost:3000).http://localhost:3000/api/auth/callback/github.To obtain Google OAuth credentials:
http://localhost:3000/api/auth/callback/google.To get the Neon PostgreSQL database URL:
, , , in the URL.sslmode=require).To get the Stripe API keys:
http://localhost:3000/api/subscriptions/webhook.Install Project Dependencies using npm install --legacy-peer-deps or yarn install --legacy-peer-deps or pnpm install --legacy-peer-deps.
Now app is fully configured and you can start using this app using either one of npm run dev or yarn dev or pnpm dev.
NOTE: Please make sure to keep your API keys and configuration values secure and do not expose them publicly.
If you run into issues during installation or setup:
@sanidhyyYou might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
Useful resources and dependencies that are used in Canva Clone.
Thanks to CodeWithAntonio: https://codewithantonio.com/
@auth/core: ^0.41.3
@auth/drizzle-adapter: ^1.11.3
@babel/eslint-parser: ^8.0.5
@hono/auth-js: ^1.0.11
@hono/zod-validator: ^0.9.1
@imgly/background-removal: ^1.7.0
@neondatabase/serverless: ^1.0.2
@paralleldrive/cuid2: ^3.3.0
@radix-ui/react-alert-dialog: ^1.1.15
@radix-ui/react-avatar: ^1.1.11
@radix-ui/react-dialog: ^1.1.15
@radix-ui/react-dropdown-menu: ^2.1.16
@radix-ui/react-label: ^2.1.8
@radix-ui/react-scroll-area: ^1.2.10
@radix-ui/react-separator: ^1.1.8
@radix-ui/react-slider: ^1.3.6
@radix-ui/react-slot: ^1.2.4
@radix-ui/react-tooltip: ^1.2.8
@radix-ui/react-visually-hidden: ^1.2.4
@tailwindcss/postcss: ^4.3.3
@tanstack/react-query: ^5.102.8
@types/lodash.debounce: ^4.0.9
@types/material-colors: ^1.2.3
@types/node: ^26.5.1
@types/react: ^19.3.0
@types/react-color: ^3.0.13
@types/react-dom: ^19.3.0
@uploadthing/react: ^7.0.3
@vercel/config: ^0.7.0
bcryptjs: ^3.0.3
class-variance-authority: ^0.7.1
clsx: ^2.1.1
date-fns: ^4.1.0
dotenv: ^17.3.1
drizzle-kit: ^0.31.0
drizzle-orm: ^0.45.0
drizzle-zod: ^0.8.3
eslint: ^10
eslint-config-next: 16.3.4
eslint-config-prettier: ^10.0.1
eslint-plugin-prettier: ^5.2.1
fabric: 7.4.0
hono: ^4.13.7
lodash.debounce: ^4.0.8
lucide-react: ^1.45.0
material-colors: ^1.2.6
next: 16.3.4
next-auth: ^5.0.0-beta.32
next-themes: ^0.4.6
onnxruntime-web: 1.21.0-dev.20250206-d981b153d3
openai: ^7.15.0
pg: ^8.18.0
postcss: ^8
prettier: ^3.9.6
prettier-plugin-tailwindcss: ^0.8.1
react: ^19.3.0
react-color: ^2.19.3
react-dom: ^19.3.0
react-icons: ^5.5.0
react-use: ^17.6.0
server-only: ^0.0.1
sonner: ^2.0.7
stripe: 22.6.2
tailwind-merge: ^3.4.1
tailwindcss: ^4.3.3
tw-animate-css: ^1.4.0
typescript: ^6.0.2
unsplash-js: ^8.0.0
uploadthing: ^7.1.0
use-file-picker: ^2.1.4
zod: ^4.6.2
zustand: ^5.0.11
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out Next.js deployment documentation for more details.
You can also give this repository a star to show more people and they can use this repository.
(back to top)
暂无开放 Issues,或尚未同步最近议题。