An open API service indexing awesome lists of open source software.

https://github.com/weijunext/nextjs-15-starter

A multilingual Next.js 15 starter with built-in i18n support. Launch your global-ready web application with a clean, efficient, and SEO-friendly foundation.
https://github.com/weijunext/nextjs-15-starter

app-router i18n multilingual nextjs nextjs-starter nextjs-template nextjs15 shadcn-ui tailwindcss

Last synced: 22 days ago
JSON representation

A multilingual Next.js 15 starter with built-in i18n support. Launch your global-ready web application with a clean, efficient, and SEO-friendly foundation.

Awesome Lists containing this project

README

        

🌍 *[English](README.md) ∙ [įŽ€äŊ“中文](README_zh.md) ∙ [æ—ĨæœŦčĒž](README_ja.md)*

# Next Forge - Multilingual Next.js 15 Starter

A feature-rich Next.js 15 multilingual starter template to help you quickly build globally-ready websites.

- [👉 Source Code](https://github.com/weijunext/nextjs-15-starter)
- [👉 Live Demo](https://nextforge.dev/)

## ✨ Features

- 🌐 Built-in i18n support (English, Chinese, Japanese)
- 🎨 Modern UI design with Tailwind CSS
- 🌙 Dark/Light theme toggle
- 📱 Responsive layout
- 📝 MDX blog system
- 🔍 SEO optimization
- 📊 Integrated analytics tools
- Google Analytics
- Baidu Analytics
- Google Adsense
- Vercel Analytics

## 🚀 Quick Start

1. Clone the repository:
```bash
git clone https://github.com/weijunext/nextjs-15-starter.git
```

2. Install dependencies:
```bash
npm install
# or
yarn
# or
pnpm install
```

3. Copy environment variables:
```bash
cp .env.example .env
```

4. Start the development server:
```bash
npm run dev
```

Visit http://localhost:3000 to view your application.

## âš™ī¸ Configuration

1. Basic Setup
- Edit `config/site.ts` for website information
- Update icons and logo in `public/`
- Configure `app/sitemap.ts` for sitemap
- Update `app/robots.ts` for robots.txt

2. i18n Setup
- Add/modify language files in `i18n/messages/`
- Configure supported languages in `i18n/routing.ts`
- Set up i18n routing in `middleware.ts`
- Create pages under `app/[locale]/`
- Use the `Link` component from `i18n/routing.ts` instead of Next.js default

## 📝 Content Management

### Blog Posts
Create MDX files in `blogs/[locale]` with the following format:

```markdown
---
title: Post Title
description: Post Description
image: /image.png
slug: /url-path
tags: tag1,tag2
date: 2025-02-20
visible: published
pin: true
---

Post content...
```

Reference `types/blog.ts` for supported fields.

### Static Pages
Manage static page content in `content/[page]/[locale].mdx`.

## 🔍 SEO Optimization

Built-in comprehensive SEO features:
- Server-side rendering and static generation
- Automatic sitemap.xml generation
- robots.txt configuration
- Optimized metadata
- Open Graph support
- Multilingual SEO support

## 📊 Analytics

Enable analytics by adding IDs in `.env`:
```
NEXT_PUBLIC_GOOGLE_ANALYTICS=
NEXT_PUBLIC_BAIDU_TONGJI=
NEXT_PUBLIC_GOOGLE_ADSENSE=
```

## đŸ› ī¸ Tech Stack

- Next.js 15
- TypeScript
- Tailwind CSS
- Shadcn/ui
- next-intl
- MDX
- Zustand
- Vercel

## One-Click Deploy

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/weijunext/nextjs-15-starter&project-name=&repository-name=nextjs-15-starter&demo-title=Nextjs15Starter&demo-description=Nextjs%2015%20starter.&demo-url=https://nextforge.dev&demo-image=https://nextforge.dev/og.png)

## 📄 License

MIT

## 🤝 Contributing

Issues and Pull Requests are welcome!

## About the Author

Next.js full-stack specialist providing expert services in project development, performance optimization, and SEO improvement.

For consulting and training opportunities, reach out at [email protected]

- [Github](https://github.com/weijunext)
- [Bento](https://bento.me/weijunext)
- [Twitter/X](https://twitter.com/judewei_dev)

Buy Me A Coffee

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/G2G6TWWMG)