Modern Node.js project template with TypeScript and ESM support.
- TypeScript with ESM support
- ESLint with modern config
- Node.js Test Runner for testing
- Pino for structured logging
- Zod for runtime type validation
- Docker support
- GitHub Actions CI workflow
npm start
- Start the applicationnpm run dev
- Start development mode with watchnpm run build
- Build TypeScript to JavaScriptnpm test
- Run testsnpm run lint
- Check code with ESLintnpm run lint:fix
- Fix ESLint issuesnpm run format
- Format code with Prettiernpm run typecheck
- Check TypeScript types
NODE_ENV
- Application environment (default: development)SAMPLE_ENV_VAR
- Sample environment variable
To build and run the Docker container for this application, follow these steps:
-
Build the Docker image:
docker build -t my-app .
-
Run the Docker container:
docker run -e NODE_ENV=production my-app
MIT