├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── actions ├── createCommentAction.ts ├── createPostAction.ts └── deletePostAction.ts ├── app ├── api │ ├── followers │ │ └── route.ts │ ├── following │ │ └── route.ts │ └── posts │ │ ├── [post_id] │ │ ├── comments │ │ │ └── route.ts │ │ ├── like │ │ │ └── route.ts │ │ ├── route.ts │ │ └── unlike │ │ │ └── route.ts │ │ └── route.ts ├── favicon.ico ├── globals.css ├── layout.tsx └── page.tsx ├── components.json ├── components ├── CommentFeed.tsx ├── CommentForm.tsx ├── Header.tsx ├── Post.tsx ├── PostFeed.tsx ├── PostForm.tsx ├── PostOptions.tsx ├── UserInformation.tsx ├── Widget.tsx └── ui │ ├── aspect-ratio.tsx │ ├── avatar.tsx │ ├── badge.tsx │ ├── button.tsx │ ├── navigation-menu.tsx │ └── sonner.tsx ├── lib ├── comments │ └── fetchComments.ts ├── generateSASToken.ts ├── getUrl.ts └── utils.ts ├── middleware.ts ├── mongodb ├── db.ts └── models │ ├── comment.ts │ ├── followers.ts │ └── post.ts ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── public ├── next.svg └── vercel.svg ├── tailwind.config.ts ├── tsconfig.json └── types └── user.ts /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/README.md -------------------------------------------------------------------------------- /actions/createCommentAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/actions/createCommentAction.ts -------------------------------------------------------------------------------- /actions/createPostAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/actions/createPostAction.ts -------------------------------------------------------------------------------- /actions/deletePostAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/actions/deletePostAction.ts -------------------------------------------------------------------------------- /app/api/followers/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/api/followers/route.ts -------------------------------------------------------------------------------- /app/api/following/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/api/following/route.ts -------------------------------------------------------------------------------- /app/api/posts/[post_id]/comments/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/api/posts/[post_id]/comments/route.ts -------------------------------------------------------------------------------- /app/api/posts/[post_id]/like/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/api/posts/[post_id]/like/route.ts -------------------------------------------------------------------------------- /app/api/posts/[post_id]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/api/posts/[post_id]/route.ts -------------------------------------------------------------------------------- /app/api/posts/[post_id]/unlike/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/api/posts/[post_id]/unlike/route.ts -------------------------------------------------------------------------------- /app/api/posts/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/api/posts/route.ts -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/app/page.tsx -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components.json -------------------------------------------------------------------------------- /components/CommentFeed.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/CommentFeed.tsx -------------------------------------------------------------------------------- /components/CommentForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/CommentForm.tsx -------------------------------------------------------------------------------- /components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/Header.tsx -------------------------------------------------------------------------------- /components/Post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/Post.tsx -------------------------------------------------------------------------------- /components/PostFeed.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/PostFeed.tsx -------------------------------------------------------------------------------- /components/PostForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/PostForm.tsx -------------------------------------------------------------------------------- /components/PostOptions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/PostOptions.tsx -------------------------------------------------------------------------------- /components/UserInformation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/UserInformation.tsx -------------------------------------------------------------------------------- /components/Widget.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/Widget.tsx -------------------------------------------------------------------------------- /components/ui/aspect-ratio.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/ui/aspect-ratio.tsx -------------------------------------------------------------------------------- /components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/ui/avatar.tsx -------------------------------------------------------------------------------- /components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/ui/badge.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/navigation-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/ui/navigation-menu.tsx -------------------------------------------------------------------------------- /components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/components/ui/sonner.tsx -------------------------------------------------------------------------------- /lib/comments/fetchComments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/lib/comments/fetchComments.ts -------------------------------------------------------------------------------- /lib/generateSASToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/lib/generateSASToken.ts -------------------------------------------------------------------------------- /lib/getUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/lib/getUrl.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/middleware.ts -------------------------------------------------------------------------------- /mongodb/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/mongodb/db.ts -------------------------------------------------------------------------------- /mongodb/models/comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/mongodb/models/comment.ts -------------------------------------------------------------------------------- /mongodb/models/followers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/mongodb/models/followers.ts -------------------------------------------------------------------------------- /mongodb/models/post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/mongodb/models/post.ts -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/linkedin-clone-nextjs-14-copilot-azure-cosmos-db-typescript-shadcn/HEAD/types/user.ts --------------------------------------------------------------------------------