This is a personal website built with Next.js 15 (App Router), featuring a blog, library, and content management system.
This project uses pnpm as the package manager. Install dependencies:
pnpm installRun the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
pnpm dev- Start development server with Turbopackpnpm build- Build for productionpnpm start- Start production serverpnpm lint- Run ESLintpnpm lint:fix- Auto-fix linting issuespnpm format- Format code with Prettierpnpm format:check- Check formatting without changespnpm test- Run tests with Vitestpnpm test:watch- Run tests in watch modepnpm typecheck- Run TypeScript type checking
This project uses Vitest with React Testing Library for unit and integration tests.
# Run all tests once
pnpm test
# Run tests in watch mode
pnpm test:watch
# Run type checking
pnpm typecheckTests should be placed in __tests__ directories or named with .test.ts(x) or .spec.ts(x) extensions. The test setup automatically includes @testing-library/jest-dom matchers.
Example test structure:
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { MyComponent } from '../my-component'
describe('MyComponent', () => {
it('renders correctly', () => {
render(<MyComponent />)
expect(screen.getByText('Hello')).toBeInTheDocument()
})
})To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.