Welcome to the Next.js Blog Project! π This blog application is built using Next.js, MongoDB with Mongoose, and JavaScript, offering a seamless and responsive user experience for creating, reading, and managing blog posts.
Check out the live version here: Next.js Blog Project
- Dynamic Blog Management: Create, update, and delete posts effortlessly.
- Responsive Design: Fully optimized for desktop and mobile devices.
- SEO-Friendly: Optimized for search engines with dynamic meta tags.
- Modern UI/UX: Interactive and clean user interface.
- Database Integration: Powered by MongoDB with Mongoose for efficient data storage and retrieval.
-
Frontend:
- Next.js
- JavaScript
- Tailwind CSS (or your chosen styling library)
-
Backend:
- MongoDB
- Mongoose
-
Deployment:
- Vercel for frontend hosting.
- MongoDB Atlas for database hosting.
Follow these steps to get the project up and running on your local machine:
- Node.js installed
- MongoDB database URI
-
Clone the repository:
git clone https://github.com/Gyanthakur/blog_app.git cd nextjs-blog
-
Install dependencies:
npm install
-
Create an
.env.local
file in the root directory and add your MongoDB connection string:MONGODB_URI=your-mongodb-uri
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
.
nextjs-blog/
βββ components/
βββ models/
βββ pages/
β βββ api/
β βββ index.js
βββ public/
βββ styles/
βββ utils/
βββ .env.local
βββ package.json
βββ README.md
- Home Page: Displays a list of all blog posts with pagination.
- Post Details: Individual pages for each blog post with dynamic routing.
- Create/Edit/Delete Blog Posts: Authenticated users can manage their content.
- API Routes: Secure and scalable API endpoints for CRUD operations.
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature-name"
- Push to the branch:
git push origin feature-name
- Submit a pull request.
This project is licensed under the MIT License.
Feel free to reach out for questions or collaboration:
-
Name: Gyan Pratap Singh
-
Email: gps.96169@gmail.com
-
Portfolio: Gyan's Portfolio
GitHub Repository: BlogApp
Enjoy blogging with the Next.js Blog Project! π