Prerequisites
Before you begin development with TailStack, ensure your environment meets the following requirements:Node.js Version
TailStack requires Node.js 24.13.0 for optimal compatibility. The repository includes version configuration files to ensure consistency across all developers:.nvmrc- For NVM (Node Version Manager) users.node-version- For asdf and other version managers
Using NVM (Recommended)
.nvmrc file will automatically be detected. Using asdf
Manual Installation
Download Node.js 24.13.0 from the official website.
"packageManager": "[email protected]"
# Using npm
npm install -g [email protected]
# Or using Corepack (recommended)
corepack enable
corepack prepare [email protected] --activate
Corepack is included with Node.js 16.13+ and automatically manages package manager versions based on your
package.json.PNPM Configuration
TailStack includes a.npmrc file at the root with the following settings:
Configuration Explained
auto-install-peers=true- Automatically installs peer dependencies, reducing manual interventionstrict-peer-dependencies=true- Enforces strict peer dependency resolution to catch version conflicts early
Git Hooks Setup
TailStack uses Husky and lint-staged to enforce code quality and security standards automatically.Initialize Husky
After cloning the repository, initialize Husky hooks:pnpm exec husky init and sets up the Git hooks in the .husky/ directory.
Pre-commit Hook
The pre-commit hook (.husky/pre-commit) runs security checks before every commit:
- Runs Gitleaks to scan staged files for secrets and credentials
- Automatically redacts sensitive information if detected
- Prevents commits containing secrets from entering your Git history
Commit Message Hook
The commit-msg hook (.husky/commit-msg) validates commit message format:
- Enforces Conventional Commits format
- Ensures consistent commit history for automated changelog generation
- Validates against rules defined in
commitlint.config.cjs
Commitlint Configuration
TailStack extends the conventional commits standard with custom limits:Editor Configuration
TailStack includes an.editorconfig file to maintain consistent coding styles:
- VS Code (install EditorConfig extension)
- JetBrains IDEs (built-in support)
- Sublime Text (install EditorConfig plugin)
- Vim/Neovim (install editorconfig-vim)
Security Tools
TailStack includes Gitleaks for secret detection:.gitleaks.toml with custom rules for:
- API keys
- Database credentials
- JWT tokens
- Private keys
- OAuth secrets
Troubleshooting
Husky hooks not running
If Git hooks aren’t executing:PNPM installation fails
If you encounter peer dependency issues:Wrong Node version
Ensure you’re using the correct Node version:Next Steps
Now that your environment is set up:- Review available automation scripts for managing the monorepo
- Learn the development workflow for running dev servers
- Explore customization options to tailor TailStack to your needs