Setup Center

Prepare the real dashboard stack before connecting your live GA4 data.

This page checks the runtime environment and tells you what is ready for production and what still needs configuration.

Project Files

.env.local

.env.local is missing. Run npm run setup:env.

Needs setup

Environment Variables

Database URL

DATABASE_URL is configured.

Ready

Redis URL

REDIS_URL is missing. Memory cache fallback will be used.

Needs setup

Auth Secret

Auth secret is configured.

Ready

Google OAuth

Google OAuth client and refresh token are configured.

Ready

Service Connections

PostgreSQL

PostgreSQL connection successful.

Ready

Redis

REDIS_URL is missing, so the app is using in-memory cache fallback.

Ready

Admin User

1 admin user record(s) found.

Ready

Next Steps

  1. 1. Run `npm run setup:env` to create `.env.local` with generated auth secrets.
  2. 2. Run `npm run infra:up` to start PostgreSQL and Redis with Docker.
  3. 3. Update `.env.local` with your real `ADMIN_EMAIL`, `ADMIN_PASSWORD`, `GOOGLE_OAUTH_CLIENT_ID`, `GOOGLE_OAUTH_CLIENT_SECRET`, and `GOOGLE_OAUTH_REFRESH_TOKEN`.
  4. 4. Run `npm run db:push` then `npm run seed:admin`.
  5. 5. Log in at `/login`, add sites in `/sites`, and test each GA4 property connection.