Running Applications

How to run and build applications and packages in your local environment

Development Workflow

Each application can be run independently. Open separate terminal windows for each app:

Terminal 1 - Auth App:

cd apps/zooly-auth
npm install
npm run dev
# Runs on http://localhost:3003

Terminal 2 - Main App:

cd apps/zooly-app
npm install
npm run dev
# Runs on http://localhost:3004

Terminal 3 - Ops App:

cd apps/zooly-ops
npm install
npm run dev
# Runs on http://localhost:3005

Terminal 4 - Docs App:

cd apps/zooly-docs
npm install
npm run dev
# Runs on http://localhost:3006

Building Packages

If you're working with packages (client, srv, or db), you may need to build them first:

# Build client package
cd packages/<domain>/client
npm install
npm run build

# Build server package
cd packages/<domain>/srv
npm install
npm run build

For development, you can use watch mode:

# Watch client package
cd packages/<domain>/client
npm run dev  # Runs tsup --watch

# Watch server package
cd packages/<domain>/srv
npm run dev  # Runs tsup --watch