Skip to content

Plsr/website-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a personal website built with Next.js 15 (App Router), featuring a blog, library, and content management system.

Getting Started

This project uses pnpm as the package manager. Install dependencies:

pnpm install

Run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

Available Scripts

  • pnpm dev - Start development server with Turbopack
  • pnpm build - Build for production
  • pnpm start - Start production server
  • pnpm lint - Run ESLint
  • pnpm lint:fix - Auto-fix linting issues
  • pnpm format - Format code with Prettier
  • pnpm format:check - Check formatting without changes
  • pnpm test - Run tests with Vitest
  • pnpm test:watch - Run tests in watch mode
  • pnpm typecheck - Run TypeScript type checking

Testing

This project uses Vitest with React Testing Library for unit and integration tests.

Running Tests

# Run all tests once
pnpm test

# Run tests in watch mode
pnpm test:watch

# Run type checking
pnpm typecheck

Writing Tests

Tests 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()
  })
})

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

About

My personal website.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •