Next.js + Eslint + Typescript + Prisma + Docker
- Node.js
- npm (https://www.npmjs.com/)
- pnpm (https://pnpm.io/)
- Yarn (https://yarnpkg.com/lang/en/)
- Docker (https://www.docker.com/)
- Docker Compose (https://docs.docker.com/compose/)
To get started, run the following commands:
npm install
# or
yarn install
# or
pnpm install
pnpm add --save-dev husky
pnpm husky init
echo "pnpm dlx commitlint --edit \$1" > .husky/commit-msg
As an alternative you can create a script inside package.json
npm pkg set scripts.commitlint="commitlint --edit"
echo "pnpm commitlint \${1}" > .husky/commit-msg
For a first simple usage test of commitlint you can do the following:
npx commitlint --from HEAD~1 --to HEAD --verbose
Start the development server with npm run dev
or yarn dev
or pnpm dev
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm 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.