Legit Blogs is a modern, dynamic, and SEO-friendly blogging platform designed to offer a seamless experience for both content creators and readers. Built with cutting-edge web technologies, it provides a user-friendly interface, categorized blogs, trending articles, and much more.
- Next.js 14 with App Router: Ensures optimal performance, scalability, and fast navigation across the platform.
- NextAuth Integration: Provides secure and customizable authentication with support for multiple providers.
- Advanced SEO Techniques: Implements best practices to maximize visibility and drive organic traffic to the platform.
- Hybrid API Architecture: Efficiently handles data fetching and content delivery with a mix of server-side and client-side rendering.
- Beautiful Typography with Code Blocks: Features elegant typography and supports code blocks with syntax highlighting, enhancing the readability and presentation of technical content.
- ShadCN UI Components: Provides a sleek, responsive, and visually appealing design that enhances user experience.
- Dynamic Routing: Supports seamless navigation, allowing users to easily explore content based on their interests.
- Frontend:
- Next.js 14 (https://nextjs.org/)
- React.js (https://reactjs.org/)
- TailwindCSS (https://tailwindcss.com/)
- ShadCN UI (https://shadcn.dev/)
- Backend:
- Next.js API Routes (https://nextjs.org/docs/pages/building-your-application/routing/api-routes)
- RESTful APIs (https://restfulapi.net/)
- Database:
- MongoDB (https://www.mongodb.com/)
- Hosting:
- Vercel (https://vercel.com/)
-
Clone the repository:
git clone https://github.com/lakshaybabbar/blog-app.git
-
Navigate to the project directory:
cd blog-app
-
Install dependencies:
npm install
-
Configure Environment Variables:
URI
: MongoDB URI addressNEXT_PUBLIC_API_URL
: Application URLNEXTAUTH_SECRET
: Secret key for NextAuth authenticationNEXTAUTH_URL
: URL for the NextAuth authenticationGOOGLE_CLIENT_ID
: Google authentication client IDGOOGLE_CLIENT_SECRET
: Google authentication client secretGITHUB_CLIENT_ID
: GitHub authentication client IDGITHUB_CLIENT_SECRET
: GitHub authentication client secretCLOUD_NAME
: Cloudinary cloud nameCLOUD_API
: Cloudinary API keyCLOUD_API_SECRET
: Cloudinary API secret key
-
Run the development server:
npm run dev
-
Open your browser: Visit http://localhost:3000 to see the application in action.
To deploy this application, you can follow these steps:
-
Build the application:
npm run build
-
Start the production server:
npm start
-
Deploy to Vercel: Push your repository to GitHub and connect it to Vercel for seamless deployment.
Contributions are welcome! Please feel free to submit a pull request or open an issue to suggest improvements or report bugs.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or suggestions, please contact Lakshay Babbar.