This is a Next.js project template.
- Tailwind CSS
- bun
- Docker
- ESLint (with antfu/eslint-config)
Enable simple-git-hooks:
bunx simple-git-hooks
Disable telemetry:
bun --bun next telemetry disable
Lint app files:
bun --bun run lint
bun --bun run lint:fix
Lint all files (including config files .etc):
bun --bun run eslint
bun --bun run eslint:fix
Run the development server:
bun --bun run dev
Build the app:
bun --bun run build
Start the production server:
bun --bun run start
Build the Docker image and run:
docker build -t nextjs-docker .
docker run --rm -itd -p 3000:3000 nextjs-docker