Install and configureQuick start

Quick start

Run SlugBase locally for development or get a minimal production instance running quickly.

What you need

  • Node.js 20 or later, with npm.
  • For the fastest production setup: Docker (see Docker or Docker Compose).

New to deployment? After this page, follow Docker Compose, Configuration, and First run setup for a complete path.

Steps

Clone the repository

Clone the SlugBase repository and open the project root in a terminal.

Install dependencies

npm install

Create a local `.env`

Copy .env.example (or example.env) to .env in the project root and fill in at least JWT_SECRET and ENCRYPTION_KEY. These are required for the server to start. See Configuration for the full list and how to generate secure values.

Start dev servers

npm run dev

This runs the backend and frontend together. By default you get:

  • Backend API: http://localhost:5000
  • Frontend dev server: http://localhost:3000

Complete initial setup in the browser

With a fresh database, the app shows Initial Setup so you can create the first admin user. Continue with First run setup for field requirements and what happens next.

Verify

GoalCheck
Dev API upOpen http://localhost:5000/api/health (or your configured host) and confirm a successful response.
Dev UILoad the frontend URL from Vite (default http://localhost:3000) and reach Initial Setup or login.
ProductionLoad your public origin; after setup you should reach the dashboard at /.

Troubleshooting