Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js boilerplate with TypeScript, Styled Components, Jest, Storybook, ESLint, Prettier, and Husky.
Boilerplate Nextjs is a Next.js starter template that bundles TypeScript, Styled Components, Jest, React Testing Library, Storybook, ESLint, Prettier, and Husky so you can begin coding with testing and linting already configured.
This boilerplate is built for the React Avançado course and provides a pre-configured Next.js project. It takes your source code and a development server as input and produces a running application with a test suite, lint checks, and a component storybook. It runs on Next.js, with pages located in pages/index.js, and is available on GitHub for anyone to use. The template is specifically designed to support the curriculum of the React Avançado course.
npm run dev launches the development server at localhost:3000.npm test or npm run test:watch.localhost:6006 via npm run storybook, and npm run build-storybook creates a static build.npm run lint checks all components and pages against the configured rules.npm run dev to serve the app at http://localhost:3000 and edit pages/index.js to see live reloads.npm test to run the Jest suite, or npm run test:watch to re-run on file changes.npm run build creates the optimized build, and npm start serves it with a simple server.npm run storybook opens the component explorer at localhost:6006, and npm run build-storybook exports a static site.After cloning the repository, install dependencies and run npm run dev. The development server watches pages/index.js and auto-updates the browser. For production, run npm run build followed by npm start. The remaining npm scripts cover linting, testing, and Storybook, giving you a complete workflow without extra configuration.
Run npm run dev or yarn dev in the project root, then open http://localhost:3000. The page auto-updates when you edit pages/index.js.
npm run dev and npm start?npm run dev starts a development server with hot reloading for active coding. npm start serves the production build created by npm run build, which is optimized for performance.
Jest is configured as the test runner, and React Testing Library provides utilities for rendering components. Use npm test to run the suite once or npm run test:watch to enable watch mode.
