Skip to content

mahmudulnayeem/next-ts-admin-panel-template

Repository files navigation

NEXT.JS TEMPLATE

Create a new repository by clicking the Use this template button on the repository page.

Getting Started

First, install the dependencies:

npm install
# or
yarn
# or
pnpm install
# or
bun install

Then, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Dependent Libraries

Features

  • TypeScript
  • ESLint
  • Prettier
  • Tailwind CSS
  • ShadeCn
  • commitlint & husky

Folder Structure

.
├── components
├── hooks
├── app
│   ├── layout
│   ├── page.tsx
│   ├── favicon.ico
│   ├── global.css
│   └── (other files and folders)
├── lib
│   ├──utils.ts
│   ├──...others
├── public
├── scripts
├── (other folders and files)
└── tsconfig.json

Scripts

  • dev: Run the development server
  • build: Build the app for production
  • start: Run the production build
  • lint: Run ESLint
  • lint:fix: Run ESLint and fix issues
  • format: Run Prettier
  • format:fix: Run Prettier and fix issues
  • commit: Run commitizen

Environment Variables

Read how to use T3 Env for environment variables. we setup T3 Env for environment variables. You can create a .env file in the root directory and add your environment variables there. and register in env.mjs file.

Commit Message Convention

This project uses commitlint to lint commit messages. The commit message convention is based on Conventional Commits.

Commit Message Format

<type>[optional scope]: <description>

Or you can use the interactive commit message prompt by running

npm run commit
# or
yarn commit
# or
pnpm commit
# or
bun commit

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.