This project is a Blog Post Application built using Next.js 14. It features user authentication, OTP verification, blog post creation, viewing functionality, likes, and comments.
- User authentication and authorization.
- OTP verification for enhanced security.
- Create, view, and manage blog posts.
- Like and comment on blog posts (only for authenticated users).
- Secure access to create and view post pages, ensuring only authenticated users can access them.
- Utilizes MongoDB for the database.
- FontAwesome icons for UI enhancements.
Install dependencies:
npm install
Create a .env.local file in the root of the project:
MONGODB_URI=your-mongodb-URI
NEXT_PUBLIC_API_URL=http://localhost:3000/api
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_SECURE=false
[email protected]
SMTP_PASS=your-email-password
Run the development server:
npm run dev