# my-threads **Repository Path**: BruceLluo/my-threads ## Basic Information - **Project Name**: my-threads - **Description**: 个人社区threads平台 使用Nextjs 13.4 搭建 使用tailwindcss处理样式 使用clerk进行身份验证,和完善的用户管理 使用shadcn-ui组件库 使用react-hook-form zod进行表单处理和ts校验 使用mongoose连接mongodb数据库 使用 uploadthing进行图片上传处理 使用 svix处理clerk webhook - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: https://my-threads.netlify.app/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-08-08 - **Last Updated**: 2023-10-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: nextjs, React, Tailwind, clerk, shadcn ## 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 ``` 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. ## create project step 1. 提交双仓库 ``` git remote -v 查看当前仓库源 git remote set-url --add origin https://gitee.com/BruceLluo/my-threads.git ``` 2. 创建项目 ``` npx create-next-app@latest ./ npm install @clerk/nextjs @uploadthing/react mongoose svix uploadthing tailwindcss-animate @clerk/theme ``` 3. clerk登录注册校验模块 ``` 使用next router 路由组,这允许您将路线段和项目文件组织到逻辑组中,而不影响 URL 路径结构。还可以嵌套路由,多个layout (auth)->sign-in->sign-out ``` 4. topbar顶部导航栏 ``` [https://app.logo.com/dashboard/logo_4a0f393c-f0be-42c7-93f0-169ba515c728/your-logo-files]设置自己logo [https://favicon.io/favicon-converter/] 生成icon 引入clerk组件 {/* clerk退出登录组件 */}