Skip to content

helderberto/nextjs-boilerplate

Repository files navigation

Next.js Boilerplate

A minimal boilerplate to quick start new projects with Next.js, TypeScript, and modern tooling.

Tech Stack

Getting Started

npx create-next-app -e https://github.com/helderburato/nextjs-boilerplate

Install dependencies and run the development server:

npm install
npm run dev

Open http://localhost:3000 with your browser.

Scripts

Command Description
npm run dev Start dev server (Turbopack)
npm run build Production build
npm start Start production server
npm test Run tests
npm run test:watch Run tests in watch mode
npm run lint Run ESLint
npm run format Format with Prettier
npm run storybook Start Storybook
npm run generate Scaffold a new component

Component Generator

Generate a new component with all boilerplate files:

npm run generate

This creates:

  • index.tsx - Component
  • ComponentName.module.css - Styles
  • stories.tsx - Storybook story
  • test.tsx - Test file

Deploy on Vercel

The easiest way to deploy your Next.js app is to use Vercel.

Check out Next.js deployment documentation for more details.

About

Boilerplate with TypeScript, React, NextJS, and CSS modules.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors