This project is a modern blog platform for sharing articles, tutorials, and insights on web development, design, AI, DevOps, and more.
Users can explore all posts via the /blogs page or dive into individual articles at /blogs/:id, rendered with rich Markdown content. Authenticated users can access the /dashboard to create new blog posts, easily uploading Markdown files for quick content creation.
Access the live application here.
| Technology | Description |
|---|---|
| Next.js | React framework for SSR and API routes |
| Tailwind CSS | Responsive styling |
| shadcn/ui | UI library |
| Spline 3D | Interactive 3D animation |
| NextAuth.js | Secure user authentication |
| Mongoose | Object-Document Mapping |
| MongoDB | Database for blog posts |
| Zod | Schema validation |
| Tanstack Query | Efficient data fetching and caching |
| React Markdown | Markdown rendering for blog content |
-
Clone the Repository:
git clone https://github.com/firas1438/BlogNest.git cd BlogNest -
Install Dependencies:
npm install
-
Set Up Environment Variables: Create a
.envfile in the root directory:MONGODB_URI=your_mongodb_connection_string AUTH_SECRET=your_nextauth_secret
- Replace
your_mongodb_connection_stringwith your MongoDB URI (e.g., from MongoDB Atlas). - Generate a
AUTH_SECRETusingopenssl rand -base64 32.
- Replace
-
Run the Development Server:
npm run dev
Open http://localhost:3000 to view the app.
