A modern blogging platform built with Next.js (frontend) and Express + MongoDB (backend).
Users can register, login, create blogs, view featured blogs, and perform CRUD operations. The backend is deployed on Vercel.
- User authentication (register/login) with hashed passwords.
- Create, read, update, and delete blogs.
- Fetch featured blogs sorted by rating.
- Search blogs by title.
- Responsive frontend with optimized images.
- Google OAuth integration and Credential Authentication.
- Frontend: https://blogify-lilac-two.vercel.app
- Backend: https://blogify-backend-ashen.vercel.app
| Route | File/Folder Path | Description |
|---|---|---|
/ |
app/page.js |
Home page showing featured blogs and latest posts |
/login |
app/login/page.js |
User login page |
/register |
app/register/page.js |
User registration page |
/blogs |
app/blogs/page.js |
All blogs listing page |
/blog/[id] |
app/blog/[id]/page.js |
Blog details page by ID |
/about |
app/about/page.js |
About page |
/terms-and-condition |
app/terms-and-condition/page.js |
Terms & Condition page |
| Route | File/Folder Path | Description |
|---|---|---|
/add-blog |
app/add-blog/page.js |
Post Own Blog |
/manage-blog |
app/manage-blog/page.js |
Manage all own blog (view, delete) |
- Frontend: Next.js, Axios, TailwindCSS
- Authentication: NextAuth.js
- Backend: Express.js, MongoDB, bcrypt, cors
- Deployment: Vercel (backend & frontend)
- Environment Variables:
.envfile
git clone https://github.com/kamrulhasanPro/Blogify.gitThen
cd blogify
npm install
npm run devCreate a .env file in the frontend folder and include:
NEXT_PUBLIC_API_BASE_URL=http://localhost:2000
NEXTAUTH_SECRET=your_nextauth_secret
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secretgit clone https://github.com/kamrulhasanPro/Blogify-Backend.git
cd blogify-backendThen
cd blogify-backend
npm install
npm run devCreate a .env file in the backend folder and include:
MONGODB_URI=your_mongodb_connection_string