# notion-clone-deploy **Repository Path**: ggbhack/notion-clone-deploy ## Basic Information - **Project Name**: notion-clone-deploy - **Description**: notion-clone-deploy react - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-05-31 - **Last Updated**: 2024-11-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started First, run the development server: ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev # convex npx convex dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. ## Learn More To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! ## Deploy on Vercel The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. ## UI 组件 [shadcn/ui](https://ui.shadcn.com/docs) 通过这种方式安装需要的组件 ```bash npx shadcn-ui@latest add xxx ``` ## convex [convex](https://dashboard.convex.dev/) ## edgestore [edgestore](https://dashboard.edgestore.dev/) ## 构建发布 ``` # 多构建起构建【根据情况选择】 docker buildx version docker buildx create --name mybuilder --use docker buildx inspect mybuilder --bootstrap # 构建镜像 docker build -t xxx/notion:v1.0.1 . # docker buildx build --platform linux/amd64,linux/arm64 -t xxx/notion:v1.0.0 --push . # 登录到 Docker Hub docker login # 推送镜像到 Docker Hub docker push xxx/notion:v1.0.1 # 使用环境文件运行镜像 docker run --env-file .env -p 3000:3000 xxx/notion:v1.0.0 # 本地运行测试 docker run -p 3000:3000 xxx/notion:v1.0.1 ``` .env.local内容 ```yaml # Deployment used by `npx convex dev` CONVEX_DEPLOYMENT dev:xxxx # team: ishow520, project: notion-clone-2f3b0 NEXT_PUBLIC_CONVEX_URL https://xxxx.convex.cloud # https://dashboard.clerk.com/apps/app_2gLg26oIr0FnFn2uHVwtWFTlh81/instances/ins_2gLg2AwfeZ1lmM0ntbFwcb7trez NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY xxxx export CLERK_SECRET_KEY=sk_test_dLKbo0VvR8k5cFY9EGRVX6WldDRxEKVVVs1NuQLLQi # edgeStore.dev EDGE_STORE_ACCESS_KEY xxxx EDGE_STORE_SECRET_KEY xxxx ```