Next Blog is a modern blog web application built using Next.js, offering fast performance and server-side rendering capabilities. It leverages MongoDB as its primary database, interfacing through Prisma, a next-generation ORM. Real-time data fetching is managed using SWR, ensuring up-to-date data presentation without frequent server hits. The project implements authentication mechanisms through Next-Auth and expands its cloud capabilities using Firebase. All of this is seamlessly deployed and hosted on Vercel, providing a smooth user experience.
- Framework: Next.js
- Database: MongoDB
- ORM: Prisma
- Data Fetching: SWR
- Authentication: Next-Auth
- Cloud Services: Firebase
- Deployment: Vercel
next: Latest version of Next.jsprisma: Latest version of Prismaswr: Latest version of SWRnext-auth: Latest version of Next-Authfirebase: Latest version of Firebase
- Clone the project:
git clone https://github.com/ardailhn/next-blog.git - Install the dependencies:
npm install - Set up your database and create your
.envfile. - Generate Prisma Client with the following command:
npx prisma generate - Run the application for developer mode:
npm run dev - Open http://localhost:3000 with your browser to see the result.
GOOGLE_CLIENT_ID =
GOOGLE_CLIENT_SECRET =
GOOGLE_TAG =
NEXTAUTH_URL = http://localhost:3000
NEXTAUTH_SECRET =
NEXT_PUBLIC_API_URL = http://localhost:3000/api/
NEXT_PUBLIC_APP_URL = http://localhost:3000/
MONGO =
DATABASE_URL=
FIREBASE =
-
Loading screens and components (skeleton etc.).
-
Internationalization.
-
User profile pages.
-
Admin panel.
-
Seo optimizations for comments.
-
Refactor of folder structure
-
Add third party analytics tools
-
Search page

