🚀 Boilerplate and Starter for Next.js, Muiv5, TanStack Query, Storybook, i18n and TypeScript ⚡️ Made with developer experience first: Next.js, TypeScript, ESLint, Prettier, Husky, Lint-Staged, Jest, Testing Library.
Install dependencies with yarn if you have just cloned the repo
yarn
First, 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 the file.
API routes can be accessed on http://localhost:3000/api/user. This endpoint can be edited in src/pages/api/user/index.ts
.
The src/pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Install dependencies with yarn if you have just cloned the repo
yarn
First, run the storybook server:
yarn storybook
Open http://localhost:6006 with your browser to see the storybook.
- Automate Chromatic with GitHub Actions - Automate the deployment of your storybook
Install dependencies with yarn if you have just cloned the repo
yarn
First, build the app:
yarn build
Then start the app:
First, build the app:
yarn start
The src/components
directory contains the theme file and some components. You can import each components in your modules or pages with import {<component-name>} from "@components/<component-name>"
Just run:
yarn test
To learn more about Next.js, Mui, React Query, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- MuiV5 Documentation - Material UI is a library of React UI components that implements Google's Material Design.
- Tanstack Query Documentation - Powerful asynchronous state management for TS/JS, React, Solid, Vue and Svelte
- next-i18next Documentation - The easiest way to translate your Next.js apps.
- Storybook Documentation - Storybook is a frontend workshop for building UI components and pages in isolation.