A simple blog viewer application built with Next.js, Kinde Auth, and Tailwind CSS. This project demonstrates how to create a blog viewer with features like authentication, dynamic routing, and data fetching.
Follow these steps to set up and run the project locally.
Clone the Repository:
git clone https://github.com/NissanJK/simple-blog-viewer.git
cd simple-blog-viewer
Install Dependencies:
npm install
Set Up Environment Variables:
Create a .env.local
file in the root directory and add your Kinde Auth credentials:
KINDE_CLIENT_ID=your_client_id
KINDE_CLIENT_SECRET=your_client_secret
KINDE_ISSUER_URL=https://your_kinde_domain.kinde.com
KINDE_SITE_URL=http://localhost:3000
KINDE_POST_LOGOUT_REDIRECT_URL=http://localhost:3000
KINDE_POST_LOGIN_REDIRECT_URL=http://localhost:3000/
Run the Development Server:
npm run dev
Open the Application:
Visit http://localhost:3000
in your browser to view the application.
simple-blog-viewer/
├── public/ # Static assets (e.g., favicon)
├── src/
│ ├── app/ # Next.js app router
│ │ ├── (auth)/ # Authentication-related routes
│ │ ├── api/ # API routes
│ │ ├── blog/ # Blog-related routes
│ │ ├── profile/ # Profile page
│ │ ├── globals.css # Global styles
│ │ ├── layout.jsx # Root layout
│ │ └── page.jsx # Home page
│ ├── components/ # Reusable components
│ └── lib/ # Utility functions
├── .env.local # Environment variables
├── .gitignore # Files to ignore in Git
├── package.json # Project dependencies
├── tailwind.config.js # Tailwind CSS configuration
└── README.md # Project documentation