A modern, full-featured Next.js application template with TypeScript, TailwindCSS, and more.
- ⚡️ Next.js 14 with App Router
- 🔒 TypeScript for type safety
- 💎 TailwindCSS for styling
- 📱 Responsive design
- 📁 Well-organized folder structure
- 🔄 Context API for state management
- 🪝 Custom React hooks
- 🛠️ Reusable components
- 📊 Data fetching patterns
- Node.js (20.x or later recommended)
- pnpm (9.x or later)
-
Clone the repository
git clone https://github.com/Prathamesh-Chougale-17/next-modern-portfolio-template.git cd next-modern-portfolio-template
-
Install dependencies
pnpm install
-
Set up environment variables
cp .env.example .env.local
Then edit
.env.local
with your values. -
Start the development server
pnpm dev
├── actions/ # Server actions for Next.js
├── app/ # App Router pages and layouts
├── components/ # Reusable UI components
├── context/ # React contexts
├── data/ # Data fetching and API functions
├── hooks/ # Custom React hooks
├── lib/ # Utility functions and libraries
├── public/ # Static assets
└── types/ # TypeScript type definitions
The website content is centralized in the data/en.ts
file, making it easy to update text across the entire application without modifying component code.
To customize the website content:
- Navigate to
data/en.ts
- Update the text values as needed
- Save the file to see changes reflected throughout the site
This approach separates content from presentation, making it easier to maintain and update your application.
// Example structure of data/en.ts
export const en = {
leetcode_username: "prathameshchougale17", // Add your LeetCode username here to dynamically fetch your stats
navItems: [
{ title: "Home", href: "/" },
{ title: "Projects", href: "/projects" },
// { title: "Blog", href: "/blog" },
{ title: "About", href: "/about" },
{ title: "Contact", href: "/contact" },
],
// Additional content sections...
};
pnpm dev
- Start development serverpnpm build
- Build for productionpnpm start
- Start production serverpnpm lint
- Run ESLint
This template is optimized for deployment on Vercel, the platform built by the creators of Next.js.
-
Create a Vercel account at vercel.com if you don't have one
-
Install the Vercel CLI (optional)
npm i -g vercel
-
Deploy using one of these methods:
Option A: Connect your GitHub repository
- Push your code to GitHub
- Import your repository on Vercel's dashboard
- Vercel will automatically detect Next.js and configure the build settings
Option B: Deploy from CLI
vercel
-
Configure environment variables in the Vercel dashboard under Project Settings > Environment Variables
-
Set up a custom domain (optional) under Project Settings > Domains
Vercel will automatically handle continuous deployments whenever you push changes to your connected repository. The platform is optimized for Next.js applications with features like Preview Deployments for pull requests and automatic HTTPS.