Prerequisites
Before you begin, ensure you have the following installed:Node.js 20+
Download from nodejs.org
pnpm 8+
Install with
npm install -g pnpmPostgreSQL 15+
Download from postgresql.org
Docker
Download from docker.com (for daemon testing)
- Git for version control
- A code editor (VS Code recommended)
Development Setup
Install dependencies
Install all workspace dependencies using pnpm:This will:
- Install dependencies for all apps and packages
- Set up Git hooks for commit linting
- Link workspace packages
Set up environment variables
Copy the example environment files and configure them:Configure Configure
apps/api/.env:apps/web/.env:Set up the database
Initialize the PostgreSQL database:
Make sure PostgreSQL is running and the database specified in
DATABASE_URL exists. Create it with:Start development servers
Start all development servers at once:This starts:
- API Server: http://localhost:3001
- Web Panel: http://localhost:3000
- Docs Site: http://localhost:3002
- Landing Page: http://localhost:3003
Accessing the Panel
Once the development servers are running:Web Panel
Main application interface
API Server
Backend API endpoints
Documentation
Documentation site
Landing Page
Marketing website
Development Workflow
Running Individual Services
If you only need to work on specific apps:Database Operations
View database schema:Code Quality Checks
Type checking:Building for Production
Build all apps:Git Workflow
Creating a Branch
Making Commits
Commits are automatically validated by Git hooks:Automatic Formatting: Git hooks automatically format staged files with Prettier before committing.
Keeping Your Fork Updated
Testing Your Changes
Before submitting a pull request:Troubleshooting
Port Already in Use
If you get “port already in use” errors:Database Connection Issues
Verify PostgreSQL is running:DATABASE_URL in apps/api/.env is correct:
Dependency Issues
Clear and reinstall:Build Errors
Clear Turborepo cache:Type Generation Issues
If TypeScript can’t find types:Docker Development (Optional)
For testing the full stack with Docker:IDE Setup (VS Code)
Recommended extensions:- ESLint:
dbaeumer.vscode-eslint - Prettier:
esbenp.prettier-vscode - Prisma:
Prisma.prisma - Tailwind CSS IntelliSense:
bradlc.vscode-tailwindcss - TypeScript: Built-in
.vscode/settings.json):
Next Steps
Now that you have a local development environment:Architecture
Learn how StellarStack is architected
Monorepo Structure
Understand the monorepo organization
Contributing
Read the contribution guidelines
API Reference
Explore the API documentation
Getting Help
If you encounter issues:- GitHub Issues: Report bugs or ask questions
- GitHub Discussions: Community help and discussions
- Discord: Real-time chat with contributors
- Linear: Track development progress at linear.app/stellarstack