A full-stack blog application built with Next.js (frontend) and Node.js/Express (backend). This project supports user authentication, blog post management, categories, comments, and a modern UI with dark mode support.
- User authentication (login/register)
- Create, edit, and delete blog posts
- Commenting system
- Category management
- Responsive and modern UI (Tailwind CSS)
- Dark mode toggle (with persistence)
- RESTful API backend
- File uploads for avatars and cover images
- Dashboard for admin and users
Frontend:
- Next.js
- React
- TypeScript
- Tailwind CSS
- TanStack Query (react-query)
Backend:
- Node.js
- Express.js
- JSON file-based storage (for demo)
- Node.js (v18+ recommended)
- npm or yarn
-
Clone the repository:
git clone <your-repo-url> cd blog-app
-
Install dependencies:
cd backend && npm install cd ../frontend && npm install
-
Run the backend server:
cd backend npm start
-
Run the frontend app:
cd frontend npm run dev
-
Open your browser: Visit http://localhost:3000
backend/
- Express.js API serverfrontend/
- Next.js frontend appuploads/
- Uploaded files (avatars, cover images)
- Frontend:
npm run dev
- Start Next.js in development modenpm run build
- Build for productionnpm run lint
- Lint codenpx tsc --noEmit
- Type-check TypeScript
- Backend:
npm start
- Start the Express server
This project is for educational/demo purposes. Feel free to use and modify.