Next.js

Next.js

Setup

npm install next react react-dom


mkdir pages
mkdir css
touch css/global.css

Package.json

{
    "scripts": {
        "dev": "next -p 4800"
    },
    "dependencies": {
        "@tailwindcss/postcss": "^4.1.11",
        "next": "^15.4.1",
        "postcss": "^8.5.6",
        "react": "^19.1.0",
        "react-dom": "^19.1.0",
        "tailwindcss": "^4.1.11"
    }
}

Hello world page

// ./pages/index.jsx
export default function HelloWorld() {
    return (
        <h1>Hello world</h1>
    );
}

Test page

Helpful commands

# Kill all next.js processes
    ps aux | grep -i next
    pkill next-server