Prerequisites
Before installing StellarStack, ensure you have the following installed:- Node.js 20 or higher (nodejs.org)
- pnpm 10 or higher
- PostgreSQL 15 or higher (postgresql.org)
- Docker (required for running game servers) (docker.com)
Installing pnpm
If you don’t have pnpm installed, you can install it globally:Development Installation
For local development and testing, follow these steps:Install dependencies
Install all project dependencies using pnpm:This will install dependencies for all packages in the monorepo.
Set up environment variables
Copy the example environment files:Edit the apps/web/.env:
.env files with your configuration. At minimum, you need to configure:apps/api/.env:The
DATABASE_URL should point to your PostgreSQL instance. Update the username, password, host, port, and database name as needed.Initialize the database
Set up the database schema:This creates the necessary tables and generates the Prisma client.
Start the development servers
Start both the API and web panel in development mode:The services will be available at:
- Web Panel: http://localhost:3000
- API Server: http://localhost:3001
Production Installation (Ubuntu)
For production deployments on Ubuntu 22.04 or higher, use the automated installer:Run the installer script
Execute the one-command installer:The installer will:
- Install Docker and Docker Compose
- Set up PostgreSQL database
- Deploy API and web containers
- Configure nginx as a reverse proxy
- Optionally set up SSL via Certbot
Follow the installation prompts
The installer will ask for:
- Installation type (panel + API, panel only, API only, or daemon)
- Domain names for the panel and API
- SSL certificate setup (recommended for production)
- Database credentials
Write down the database credentials provided during installation. You’ll need them for configuration.
Docker Compose Installation
For self-hosting with Docker Compose:Next Steps
Quick Start
Get up and running with your first login
Configuration
Learn about environment variables and settings