boilerplate-nextjss
v1.4.0
Published
<center> <img src=".github/assets/hero-illustration.svg" alt="A developer walking and a screen with the text NextJS" /> </center>
Downloads
1
Readme
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?
- NextJS
- ReactJS
- TypeScript
- Styled Components
- React Testing Library
- Vitest
- Storybook
- Eslint
- Prettier
- Husky
- Lint-Staged
- Plop
Getting Started
You can use this as a boilerplate:
npx degit https://github.com/adeonir/boilerplate-nextjs my-project
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/pages/index.tsx
. The page auto-updates as you edit and save the file.
If you like to try the production build, run:
pnpm build
And then:
pnpm start
Commands
dev
: runs your application onlocalhost:3000
build
: creates the production buildexport
: exports to static files toout
folder, and can be run standalonestart
: starts a simple server with the build production codelint
: runs the linter in all components and pagestest
: runs vitest oncewatch
: runs vitest in watch modecoverage
: runs vitest with coverage tablegenerate
: runs plop to generate component filesstorybook
: runs storybook onlocalhost:6006
Made with ♥️ by Adeonir Kohl