This is a Next.js boilerplate based on the course React Avançado, with some flavors like Tailwind, Storybook, Vitest, Cypress and Testing-Library.
- Next.js
- ReactJS
- TypeScript
- Tailwind
- Storybook
- Vitest
- React Testing Library
- Cypress
- Eslint
- Prettier
- Husky
- Lint-Staged
- Plop
You can use this as a boilerplate:
npx create-next-app --example https://github.com/adeonir/boilerplate-nextjs
Then, run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying src/app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font, but you can choose any font from Google Fonts.
If you like to try the production build, run:
pnpm build
And then:
pnpm start
dev
: runs your application in development modebuild
: creates the production buildstart
: starts a simple server with the build production codelint
: runs the linter in all components and pagestest:unit
: runs vitest oncewatch:unit
: runs vitest in watch modecoverage
: runs vitest creating a coverage reportcoverage:preview
: starts a server with the coverage report filestest:e2e
: runs cypress oncewatch:e2e
: runs cypress in watch modetest:ci
: runs cypress within the CIgenerate
: runs plop to generate component filesstorybook
: runs storybook onlocalhost:6006
storybook:build
: builds the storybookstorybook:preview
: starts a server with the storybook static files
Made with