Setup

Connect your database

The storefront needs a MongoDB connection string before it can show anything. Two lines and a restart.

  1. Step one

    Create .env.local in the project root (copy .env.example).

  2. Step two
    MONGODB_URI=mongodb+srv://user:pass@cluster.mongodb.net
    MONGODB_DB=crowned
    AUTH_SECRET=any-random-32-character-string
  3. Step three

    Restart npm run dev, then come back here and seed the catalog.