nextjs-startersss
v0.2.0
Published
![React tests](https://github.com/briangershon/nextjs-starter/actions/workflows/continuous-integration.yaml/badge.svg)
Downloads
1
Readme
nextjs-starter
Starter template for Next.js, with TypeScript, tailwindcss and daisyUI.
Features
- Add Next.js v13 with experimental /app support
- Uses experimental
/app
layout in Next.js v13 with server components, client components and layouts. - Adds example server-rendered component populated with fetch (using data from jokes API). Display message while loading.
- Note that
fetch
not usable in client components. Use server components or third-party client-side library like Axios if needed. https://beta.nextjs.org/docs/data-fetching/fetching
- Uses experimental
- Start with minimal Next.js app (using
npm
) vianpx create-next-app nextjs-starter --ts
and simplify content - Add tailwindcss and daisyUI
- Add navigation, site layout and two pages
- Add Jest, React Testing Library, GitHub action to run tests, README badge, sample test
- Add Prettier config
- Add health check endpoint (
/api/health
) - Add placeholder
favicon.ico
Run locally
yarn
yarn dev
Open http://localhost:3000 with your browser to see the result.
Run tests
yarn
yarn test