Installation
TailStack is distributed as a set of standalone templates. You can scaffold a new project directly from GitHub usingdegit or curl, giving you a clean Git history to start from.
Prerequisites
Before installing TailStack, ensure you have the following:- Node.js - Version 20.x or higher (specified in
.nvmrcand.node-version) - pnpm - Version 10.12.1 or higher (TailStack’s package manager)
Installation methods
Choose your preferred installation method:Method 1: Using degit (Recommended)
degit is the recommended way to scaffold TailStack projects. It downloads the template without the entire Git history.
Install the template
Run the appropriate command for your chosen template:What you get:
- Core (Monorepo)
- React (Frontend)
- Node (Backend)
- Full-stack ERN architecture
- Express backend with Node clustering
- React frontend with Vite and Tailwind CSS 4
- Weather app demo
- Shared monorepo configuration
- Automation scripts (clean, install)
You can scaffold into the current directory by using
. as the project name:Install dependencies
Install project dependencies using pnpm:For Core template only, you can use the intelligent install script:Smart Install Features:
- Installs all workspace packages in parallel
- Monitors CPU and RAM usage in real-time
- Automatically suspends processes if load exceeds 90%
- Resumes when load drops below 75%
- Prevents system crashes during heavy dependency resolution
Configure environment (Backend templates only)
For Core and Node templates, set up environment variables:Edit the
.env file with your configuration:.env
Method 2: Using curl
If you don’t have Node.js installed or prefer a shell-native approach, usecurl to download and extract the template:
Method 3: Manual clone
For contributors or those who want to explore all templates:Package scripts reference
Each template comes with npm scripts for common tasks:Core template
package.json
source/frontend/package.json
source/Server/package.json
React template
package.json
Node template
package.json
Automation scripts (Core template)
The Core template includes powerful automation scripts in thescripts/ directory:
Smart clean
Removes allnode_modules and lock files with parallel processing:
- Two-phase parallel purge
- Kills locking processes (Node, VS Code)
- 3-retry verification loop for stubborn files
- Force deletion with elevated permissions if needed
Smart install
Parallel dependency installation with load monitoring:- Installs all workspace packages concurrently
- Real-time CPU and RAM monitoring
- Intelligent state machine for load management
- Automatic pause/resume to prevent system hangs
Troubleshooting
pnpm: command not found
pnpm: command not found
Install pnpm globally:Or use corepack (Node.js 16.13+):
Node version mismatch
Node version mismatch
TailStack requires Node.js 20.x or higher. If using nvm:Or in the project directory:
Port already in use
Port already in use
If you see For backend (port 5000):Or change the port in your configuration files.
EADDRINUSE errors:For frontend (port 5173):Permission denied on scripts
Permission denied on scripts
Make scripts executable:
Next steps
Quick start
Follow the quick start guide to build your first feature
Project structure
Understand the directory organization and file structure
Configuration
Configure environment variables, linting, and Git hooks
Development
Learn about the development workflow and best practices