lucianobarauna / boilerplate-nextjs

A NextJS boilerplate with TypeScript, Jest, Testing-Library, Styled-Components and Storybook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A developer walking and a screen with the text NextJS

NextJS Boilerplate


This is a Next.js boilerplate based on the course React Avançado, with some personal flavors like Vitest and Storybook with Vite builder.

What is inside?

Getting Started

You can use this as a boilerplate:

npx degit https://github.com/adeonir/boilerplate-nextjs my-project

Then, run the development server:

yarn dev

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

You can start editing the page by modifying src/pages/index.tsx. The page auto-updates as you edit and save the file.

If you like to try the production build, run:

yarn build

And then:

yarn start

Commands

  • dev: runs your application on localhost:3000
  • build: creates the production build
  • export: exports to static files to out folder, and can be run standalone
  • start: starts a simple server with the build production code
  • lint: runs the linter in all components and pages
  • format: runs prettier to format all components and pages
  • test: runs vitest in watch mode
  • test:coverage: runs vitest with coverage table
  • test:ci: runs vitest once on CI
  • generate: runs plop to generate component files
  • storybook: runs storybook on localhost:6006
  • storybook:build: create the production build of storybook

Made with ♥️ by Adeonir Kohl

About

A NextJS boilerplate with TypeScript, Jest, Testing-Library, Styled-Components and Storybook


Languages

Language:TypeScript 74.5%Language:JavaScript 12.4%Language:Handlebars 10.3%Language:HTML 2.2%Language:Shell 0.6%