To get started with this template, first install the npm dependencies:
pnpm install
Next, create a .env.local
file in the root of your project and set the NEXT_PUBLIC_SITE_URL
variable to your site's public URL:
NEXT_PUBLIC_SITE_URL=https://example.com
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXX
Next, run the development server:
pnpm run dev
Finally, open http://localhost:3000 in your browser to view the website.
For, production build:
pnpm run dev
Or
ANALYZE=true pnpm run build
This will automatically open tabs for
/project/path/.next/analyze/nodejs.html
/project/path/.next/analyze/edge.html
/project-path/.next/analyze/client.html
Currently not priority.
Use Vitest with JSDOM and React Testing Library
- Start testing key files/components.
- Test each file in
src/
- 80% Code coverage.
Use Playwright.
Testing Strategy:
- Simple, testing page essentials only, (load ok, title, LCPs, key items)
- Test pages incrementally
This site template is a commercial product and is licensed under the Tailwind UI license.
To learn more about the technologies used in this site template, see the following resources:
- Tailwind CSS - the official Tailwind CSS documentation
- Next.js - the official Next.js documentation
- Headless UI - the official Headless UI documentation
- MDX - the MDX documentation