vue-element-admin
:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
- 90k
- Vue
- MIT
- 2 y ago
A modern, full-stack developer blog platform focused on sharing real-world coding errors and their solutions. Dev-Bug-Coder-Blog empowers developers to post, discuss, and resolve bugs, fostering a collaborative learning environment.
Repo arnobt78/Developer-Blog-Platform--NextJS-FullStack, read from GitHub 24 min ago. arnobt78 has not joined Take My Repo.
arnobt78/Developer-Blog-Platform--NextJS-FullStack is a public repo on GitHub by arnobt78. A modern, full-stack developer blog platform focused on sharing real-world coding errors and their solutions. Dev-Bug-Coder-Blog empowers developers to post, discuss, and resolve bugs, fostering a collaborative learning environment. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in TypeScript, has 2 stars and last changed on 2026-01-15. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A full-stack developer blog platform where programmers share real-world coding errors, bugs, and their solutions. Built with Next.js 16, React 19, TypeScript, MongoDB, Prisma, and TanStack React Query.
Dev-Bug-Coder-Blog is a modern, full-stack blogging platform designed for developers to share coding errors, bugs, and solutions. It features real-time interactions, optimistic UI updates, nested comments, image uploads, and a comprehensive notification system.
User Authentication
Post Management
Comments System
Notifications
Search & Filter
Admin Features
dev-blog/
โโโ app/ # Next.js App Router
โ โโโ api/ # API routes
โ โ โโโ auth/ # Authentication endpoints
โ โ โโโ posts/ # Post CRUD operations
โ โ โโโ comments/ # Comment operations
โ โ โโโ notifications/ # Notification endpoints
โ โ โโโ upload/ # Image upload
โ โ โโโ users/ # User endpoints
โ โโโ (pages)/ # Public pages
โ โ โโโ page.tsx # Home page
โ โ โโโ posts/ # Posts listing
โ โ โโโ post/[id]/ # Post details
โ โ โโโ login/ # Login page
โ โ โโโ register/ # Registration page
โ โ โโโ create-post/ # Create post
โ โ โโโ edit-post/[id]/ # Edit post
โ โ โโโ saved-posts/ # Saved posts
โ โ โโโ notifications/ # Notifications page
โ โ โโโ admin/ # Admin pages
โ โโโ layout.tsx # Root layout
โโโ components/ # React components
โ โโโ ui/ # ShadCN UI components
โ โโโ providers/ # Context providers
โ โโโ (feature components) # Feature-specific components
โโโ hooks/ # Custom React hooks
โ โโโ use-posts.ts # Post operations
โ โโโ use-auth.ts # Authentication
โ โโโ use-comments.ts # Comments
โ โโโ use-notifications.ts # Notifications
โโโ lib/ # Utility libraries
โ โโโ prisma.ts # Prisma client
โ โโโ query-client.ts # React Query config
โ โโโ imagekit.ts # ImageKit integration
โ โโโ utils.ts # Helper functions
โโโ types/ # TypeScript types
โโโ prisma/ # Database schema
โ โโโ schema.prisma
โโโ public/ # Static assets
Create a .env file in the root directory with the following variables:
# App Configuration
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Database
# MongoDB connection string
# Format: mongodb://username:password@host:port/database?authSource=admin
DATABASE_URL="mongodb://localhost:27017/dev-blog"
# JWT Secret
# Generate a secure random string (minimum 256 characters recommended)
# You can generate one using: openssl rand -base64 32
JWT_SECRET="your-super-secret-jwt-key-change-this-in-production"
# Admin Configuration
# Email address for admin user (exposed to client for admin checks)
NEXT_PUBLIC_ADMIN_EMAIL="admin@example.com"
# Email Configuration (for password reset)
# Gmail SMTP credentials
EMAIL_USER="your-email@gmail.com"
EMAIL_PASS="your-app-specific-password"
# ImageKit Configuration
# Get these from your ImageKit dashboard
NEXT_PUBLIC_IMAGEKIT_PUBLIC_KEY="your-imagekit-public-key"
IMAGEKIT_PRIVATE_KEY="your-imagekit-private-key"
NEXT_PUBLIC_IMAGEKIT_URL_ENDPOINT="https://ik.imagekit.io/your-imagekit-id"
Local MongoDB:
DATABASE_URL="mongodb://localhost:27017/dev-blog"
MongoDB Atlas (Cloud):
<password> with your database passwordDATABASE_URL="mongodb+srv://username:password@cluster.mongodb.net/dev-blog?retryWrites=true&w=majority"
Generate a secure random string:
# Using OpenSSL
openssl rand -base64 32
# Or use Node.js
node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"
EMAIL_PASSgit clone <repository-url>
cd dev-blog
npm install
Copy .env.example to .env:
cp .env.example .env
Fill in all required environment variables (see Environment Variables section)
Start MongoDB (if using local):
# macOS (using Homebrew)
brew services start mongodb-community
# Linux
sudo systemctl start mongod
# Windows
# Start MongoDB service from Services panel
Generate Prisma Client:
npm run prisma:generate
Push Database Schema:
npm run prisma:push
This creates all tables/collections in your MongoDB database.
npm run dev
The application will be available at http://localhost:3000
npm run dev
Runs the app in development mode with Turbopack for faster builds.
# Build the application
npm run build
# Start production server
npm start
# Lint code
npm run lint
# Generate Prisma Client
npm run prisma:generate
# Push database schema changes
npm run prisma:push
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register |
Register new user |
| POST | /api/auth/login |
Login user |
| GET | /api/auth/validate |
Validate JWT token |
| GET | /api/auth/me |
Get current user |
| POST | /api/auth/forgot-password |
Request password reset |
| POST | /api/auth/reset-password |
Reset password with token |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/posts |
Get all posts (with filters) |
| GET | /api/posts/[id] |
Get single post |
| POST | /api/posts |
Create new post |
| PUT | /api/posts/[id] |
Update post |
| DELETE | /api/posts/[id] |
Delete post |
| POST | /api/posts/[id]/like |
Like/unlike post |
| POST | /api/posts/[id]/helpful |
Mark post as helpful |
| POST | /api/posts/[id]/save |
Save post |
| POST | /api/posts/[id]/unsave |
Unsave post |
| POST | /api/posts/[id]/report |
Report post |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/comments/post/[postId] |
Get comments for post |
| POST | /api/comments/post/[postId] |
Create comment |
| PUT | /api/comments/[id] |
Update comment |
| DELETE | /api/comments/[id] |
Delete comment |
| POST | /api/comments/[id]/like |
Like/unlike comment |
| POST | /api/comments/[id]/helpful |
Mark comment as helpful |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/notifications |
Get user notifications |
| PUT | /api/notifications/[id]/mark-read |
Mark notification as read |
| PUT | /api/notifications/mark-all-read |
Mark all as read |
| DELETE | /api/notifications/[id] |
Delete notification |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/upload |
Upload image to ImageKit |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/users/me/saved-posts |
Get saved posts |
| PUT | /api/users/me |
Update user profile |
Displays a post card with all interactions.
import PostCard from "@/components/PostCard";
<PostCard
post={{
id: "post-id",
title: "Post Title",
description: "Description",
// ... other post fields
}}
saved={false}
onUnsave={(postId) => {
/* handle unsave */
}}
onDelete={(postId) => {
/* handle delete */
}}
onLikeHelpfulUpdate={(postId, data) => {
/* handle update */
}}
/>;
Props:
post: Post object with all post datasaved: Boolean indicating if post is savedonUnsave: Callback when post is unsavedonDelete: Callback when post is deletedonLikeHelpfulUpdate: Callback for like/helpful updatesNested comment system with replies.
import CommentSection from "@/components/CommentSection";
<CommentSection
postId="post-id"
parentId="comment-id" // Optional: for nested replies
/>;
Props:
postId: ID of the postparentId: Optional parent comment ID for nested repliesReusable confirmation dialog (replaces window.confirm).
import { ConfirmDialog } from "@/components/ConfirmDialog";
const [showConfirm, setShowConfirm] = useState(false);
<ConfirmDialog
open={showConfirm}
onOpenChange={setShowConfirm}
title="Delete Post"
description="Are you sure you want to delete this post?"
confirmText="Delete"
cancelText="Cancel"
onConfirm={() => deletePost()}
variant="destructive" // "default" | "destructive"
/>;
Reusable input dialog (replaces window.prompt).
import { InputDialog } from "@/components/InputDialog";
const [showDialog, setShowDialog] = useState(false);
<InputDialog
open={showDialog}
onOpenChange={setShowDialog}
title="Report Post"
description="Why are you reporting this post?"
placeholder="Enter reason..."
onConfirm={(value) => reportPost(value)}
type="textarea" // "text" | "textarea"
/>;
All UI components are in components/ui/:
skeleton.tsx - Loading skeletonstoast.tsx - Toast notificationsdialog.tsx - Dialog componentalert-dialog.tsx - Alert dialog componentFetch and manage posts with React Query.
import { usePosts, usePost, useCreatePost } from "@/hooks/use-posts";
// Fetch all posts
const { data: posts, isLoading } = usePosts({
tag: "react", // Optional filter
search: "error", // Optional search
});
// Fetch single post
const { data: post } = usePost("post-id");
// Create post
const createPost = useCreatePost();
createPost.mutate(formData);
Available Hooks:
usePosts() - Get all postsusePost(id) - Get single postuseSavedPosts() - Get saved postsuseCreatePost() - Create post mutationuseUpdatePost() - Update post mutationuseDeletePost() - Delete post mutationuseLikePost() - Like/unlike mutation (optimistic)useMarkHelpful() - Mark helpful mutation (optimistic)useSavePost() - Save post mutationuseUnsavePost() - Unsave post mutationAuthentication hooks.
import { useAuth, useLogin, useLogout } from "@/hooks/use-auth";
// Check authentication
const { data: authData } = useAuth();
const user = authData?.user;
const isLoggedIn = !!user;
// Login
const login = useLogin();
login.mutate({ email: "user@example.com", password: "password" });
// Logout
const logout = useLogout();
logout.mutate();
Available Hooks:
useAuth() - Get current useruseLogin() - Login mutationuseRegister() - Register mutationuseLogout() - Logout mutationuseUpdateProfile() - Update profile mutationuseRequestPasswordReset() - Request password resetuseResetPassword() - Reset password with tokenComment management hooks.
import { useComments, useCreateComment } from "@/hooks/use-comments";
// Fetch comments
const { data: comments } = useComments("post-id");
// Create comment
const createComment = useCreateComment();
createComment.mutate({
postId: "post-id",
content: "Comment text",
parentId: "parent-comment-id", // Optional: for replies
});
Available Hooks:
useComments(postId) - Get comments for postuseCreateComment() - Create comment mutationuseUpdateComment() - Update comment mutationuseDeleteComment() - Delete comment mutationuseLikeComment() - Like/unlike comment (optimistic)Notification hooks.
import {
useNotifications,
useMarkAllNotificationsRead,
} from "@/hooks/use-notifications";
// Fetch notifications
const { data: notifications } = useNotifications();
// Mark all as read
const markAllRead = useMarkAllNotificationsRead();
markAllRead.mutate();
Available Hooks:
useNotifications() - Get notifications (auto-refetches every 2 minutes)useUnreadCount() - Get unread countuseMarkNotificationRead() - Mark single as readuseMarkAllNotificationsRead() - Mark all as readuseDeleteNotification() - Delete notificationImage upload hook.
import { useImageUpload } from "@/hooks/use-image-upload";
const { uploadImage, uploading, progress } = useImageUpload();
const handleUpload = async () => {
const result = await uploadImage(file, "posts");
if (result) {
console.log(result.url); // Image URL
console.log(result.fileId); // ImageKit file ID
}
};
id: String (ObjectId)name: Stringemail: String (unique)password: String (hashed)country: String (optional)avatarUrl: String (optional)resetToken: String (optional)resetTokenExpiry: DateTime (optional)id: String (ObjectId)title: Stringdescription: Stringcontent: StringcodeSnippet: String (optional)createdAt: DateTimetags: String[]imageUrl: String (optional)fileId: String (optional) - ImageKit file IDlikes: InthelpfulCount: IntauthorId: String (ObjectId) - Reference to Userid: String (ObjectId)content: StringcreatedAt: DateTimeavatarUrl: String (optional)imageUrl: String (optional)fileId: String (optional)postId: String (ObjectId)authorId: String (ObjectId)parentId: String (ObjectId, optional) - For nested commentsid: String (ObjectId)userId: String (ObjectId)type: String - 'like', 'helpful', 'comment', etc.message: StringisRead: BooleanpostId: String (optional)commentId: String (optional)fromUserId: String (ObjectId, optional)createdAt: DateTimeCopy Component Files:
# Copy PostCard and its dependencies
components/PostCard.tsx
components/PostHeader.tsx
components/PostContent.tsx
components/PostStats.tsx
components/PostActionsBar.tsx
components/PostDropdownMenu.tsx
Copy Required Hooks:
hooks/use-posts.ts
hooks/use-auth.ts
Copy UI Components:
components/ui/skeleton.tsx
components/ui/toast.tsx
components/ui/toaster.tsx
hooks/use-toast.ts
Install Dependencies:
npm install @tanstack/react-query react-icons
Set Up React Query Provider:
// In your root layout
import { QueryProvider } from "@/components/providers/query-provider";
export default function Layout({ children }) {
return <QueryProvider>{children}</QueryProvider>;
}
Use the Component:
import PostCard from "@/components/PostCard";
import { usePosts } from "@/hooks/use-posts";
function MyPage() {
const { data: posts } = usePosts();
return (
<div>
{posts?.map((post) => (
<PostCard key={post.id} post={post} />
))}
</div>
);
}
Copy Files:
components/CommentSection.tsx
components/CommentItem.tsx
components/CommentInput.tsx
components/CommentHeader.tsx
components/CommentAvatar.tsx
components/CommentActionsBar.tsx
hooks/use-comments.ts
hooks/use-image-upload.ts
Set Up API Endpoint:
Create /api/comments/post/[postId]/route.ts in your Next.js app.
Use the Component:
import CommentSection from "@/components/CommentSection";
<CommentSection postId="post-id" />;
Copy Files:
components/ConfirmDialog.tsx
components/InputDialog.tsx
components/ui/dialog.tsx
components/ui/alert-dialog.tsx
Install Dependencies:
npm install @radix-ui/react-dialog @radix-ui/react-alert-dialog
Use Components:
import { ConfirmDialog } from "@/components/ConfirmDialog";
// Replace window.confirm
<ConfirmDialog
open={showConfirm}
onOpenChange={setShowConfirm}
title="Confirm Action"
description="Are you sure?"
onConfirm={handleConfirm}
/>;
Push code to GitHub
Import project in Vercel:
Add Environment Variables:
.env fileNEXT_PUBLIC_* variables are addedConfigure Build Settings:
npm run build.nextnpm installDeploy:
All environment variables from .env must be added to Vercel:
DATABASE_URLJWT_SECRETNEXT_PUBLIC_ADMIN_EMAILEMAIL_USEREMAIL_PASSNEXT_PUBLIC_IMAGEKIT_PUBLIC_KEYIMAGEKIT_PRIVATE_KEYNEXT_PUBLIC_IMAGEKIT_URL_ENDPOINTNEXT_PUBLIC_APP_URL (your Vercel URL)DATABASE_URL in Vercel environment variablesTechnologies: Next.js, React, TypeScript, MongoDB, Prisma, TanStack React Query, Tailwind CSS, ShadCN UI, ImageKit, JWT, bcrypt, Nodemailer
Features: Blog Platform, Developer Community, Code Sharing, Bug Tracking, Error Solutions, Nested Comments, Real-time Notifications, Image Upload, Authentication, Search & Filter
Concepts: Server-Side Rendering, Client-Side Rendering, Optimistic Updates, React Query, Caching, API Routes, Type Safety, Component Reusability, Responsive Design
Dev-Bug-Coder-Blog is a comprehensive, production-ready blogging platform that demonstrates modern web development practices. It showcases:
This project serves as an excellent learning resource for:
Feel free to use this project repository and extend this project further!
If you have any questions or want to share your work, reach out via GitHub or my portfolio at https://arnob-mahmud.vercel.app/.
Enjoy building and learning! ๐
Thank you! ๐
arnobt78/Developer-Blog-Platform--NextJS-FullStack is a public repo on GitHub by arnobt78. A modern, full-stack developer blog platform focused on sharing real-world coding errors and their solutions. Dev-Bug-Coder-Blog empowers developers to post, discuss, and resolve bugs, fostering a collaborative learning environment.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-01-15. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source โ self-host for your organization with complete privacy.
A full-stack warehouse and stock inventory management system built with Next.js, React, Prisma, and MongoDB. It helps store owners, suppliers, and clients manage products, orders, invoices, warehouses, and support tickets with role-based access, analytics dashboards, QR codes, payments (Stripe), shipping (Shippo), and email (Brevo).
A comprehensive, production-ready hotel booking platform built with the MERN stack (MongoDB, Express.js, React, Node.js) featuring advanced search, booking management, analytics dashboard, and payment integration.
A healthcare patient management application using Next.js that allows patients to easily register, book, and manage their appointments with doctors, featuring administrative tools for scheduling, confirming, and canceling appointments, along with SMS notifications
A modern, fully responsive coffee shop landing page built with Next.js 15, React, TypeScript, and TailwindCSS. This project is designed for learning and instruction: it showcases the App Router, client & server components, advanced animations (GSAP, Framer Motion, Locomotive Scroll), SEO metadata, component-based structure
A fullstack food ordering platform built with the MERN stack (MongoDB, Express.js, React, Node.js). It provides a modern, scalable, production-ready solution for online food ordering, restaurant management, real-time order tracking. The project is split into a robust backend REST API, feature-rich, responsive frontend SPA, ease of learning or reuse
A modern, responsive, and feature-rich travel and camping web application built with Next.js, React, and Tailwind CSS. This project provides a beautiful UI/UX for exploring camping destinations, viewing features, and guiding users through an engaging journey experience.
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/arnobt78/Developer-Blog-Platform--NextJS-FullStackTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.