A Next.js starter template, packed with features like TypeScript, Tailwind CSS, Next-auth, Eslint, Stripe, testing tools and more. Jumpstart your project with efficiency and style.
MIT License
@/
prefixEasily deploy your Next.js app with Vercel by clicking the button below:
Using this repository as template
Using create-next-app
npx create-next-app -e https://github.com/Skolaczk/next-starter my-project-name
Using git clone
git clone https://github.com/Skolaczk/next-starter my-project-name
npm install
Create .env
file and set env variables from .env.example
file.
It is required if you want husky to work
npm run prepare
You can start the server using this command:
npm run dev
and open http://localhost:3000/ to see this app.
.
βββ .github # GitHub folder
βββ .husky # Husky configuration
βββ prisma # Prisma schema and migrations
βββ public # Public assets folder
βββ src
βββ __tests__ # Unit and e2e tests
βββ actions # Server actions
βββ app # Next JS App (App Router)
βββ components # React components
βββ hooks # Custom hooks
βββ lib # Functions and utilities
βββ styles # Styles folder
βββ types # Type definitions
βββ messages # Messages for i18n
βββ paraglide # (generated) compiled i18n messages
βββ env.mjs # Env variables config file
The following scripts are available in the package.json
:
dev
: Run development serverbuild
: Build the appstart
: Run production serverpreview
: Run build
and start
commands togetherlint
: Lint the code using Eslintlint:fix
: Fix linting errorsformat:check
: Checks the code for proper formattingformat:write
: Fix formatting issuestypecheck
: Type-check TypeScript without emitting filestest
: Run unit teststest:watch
: Run unit tests in watch modee2e
: Run end-to-end testse2e:ui
: Run end-to-end tests with UIpostbuild
: Generate sitemapprepare
: Install Husky for managing Git hooksTo contribute, please follow these steps:
If you liked the project, I will appreciate if you leave a star. ππ
Made by MichaΕ Skolak