Installation Guide
A comprehensive guide to installing and configuring Clean Stack in your development environment.
System Requirements
Required Software
Software | Minimum Version | Recommended Version |
---|---|---|
Node.js | 18.0.0 | 20.0.0 |
Bun | 1.0.0 | Latest |
Docker | 20.10.0 | Latest |
Docker Compose | 2.0.0 | Latest |
Git | 2.0.0 | Latest |
Hardware Requirements
- 8GB RAM (minimum)
- 4 CPU cores (recommended)
- 20GB free disk space
Installation Steps
1. Install Bun
curl -fsSL https://bun.sh/install | bash
2. Install Docker
Follow the official Docker installation guide for your operating system:
3. Install Clean Stack CLI
bun install -g @clean-stack/cli
4. Verify Installation
clean-stack --version
Development Tools Setup
IDE Configuration
We recommend using Visual Studio Code with these extensions:
- ESLint
- Prettier
- Proto3
- Docker
- MongoDB for VS Code
Environment Setup
- Clone the configuration files:
clean-stack init-config
- Configure your environment variables:
cp .env.example .env
Troubleshooting
Common Issues
- Port Conflicts
# Check for port usage
lsof -i :3000
lsof -i :3001
- Docker Issues
# Reset Docker environment
docker system prune -a
Common Errors and Fixes
Error: "Command not found: bun"
Cause: Bun is not installed or not added to the system PATH. Solution:
- Verify installation by running
bun --version
. - If not installed, follow the Bun installation guide.
- Ensure the Bun binary path is added to your system's PATH variable.
Error: "Docker daemon not running"
Cause: Docker is not started on your system. Solution:
- Start the Docker application on your system.
- Verify by running
docker info
.
Error: "Port already in use"
Cause: Another application is using the required port. Solution:
- Identify the process using the port:
lsof -i :3000
- Stop the conflicting process or change the port in the configuration.
Error: "Permission denied" during file operations
Cause: Insufficient permissions to access certain files or directories. Solution:
- Use
sudo
for commands requiring elevated privileges. - Check file permissions and ownership using
ls -l
.
For more troubleshooting tips, refer to the Troubleshooting Guide.
Next Steps
- Follow our Quick Start Guide
- Learn about Project Structure