A modern blog application built with Next.js, MongoDB, and Tailwind CSS.
- Blog post creation and management
- Image upload functionality
- Responsive design with Tailwind CSS
- MongoDB integration for data storage
- A Render.com account
- MongoDB database (you can use MongoDB Atlas)
- Your project pushed to a Git repository
- Log in to your Render.com dashboard
- Click on "New +" and select "Web Service"
- Connect your Git repository
- Configure your web service:
- Name:
next-blog-app - Environment:
Node - Build Command:
npm install && npm run build - Start Command:
npm start
- Name:
Add the following environment variables in your Render.com dashboard:
MONGODB_URI: Your MongoDB connection stringNODE_ENV: Set toproduction
- Clone the repository
- Install dependencies:
npm install
- Copy
.env.exampleto.envand update the variables - Run the development server:
npm run dev
- Next.js 14.0.4
- MongoDB with Mongoose
- Tailwind CSS
- React 18
- Axios for API calls
/app- Next.js application routes and API endpoints/Components- React components/public- Static assets and uploaded images/lib- Database configuration and models