Skip to content

corgi13/tejospec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tejospec (Canonical Workspace)

This folder contains the canonical pnpm + Nx monorepo for the Tejo storefront and API.

Start here:

  • Source of truth runbook: docs/MASTER_PLAN.md
  • Package manager: pnpm-only
  • Task runner: Nx (preferred via pnpm exec nx)

Canonical Apps

Path Package Purpose
apps/web/ @tejo/web Next.js (Pages Router) storefront (webpack dev for i18n)
apps/api/ @tejo/api NestJS API (module architecture)
packages/shared/ @tejo/shared Shared types/utils (one-way imports only)

Quick Start (Local)

Prerequisites

  • Node.js 20+
  • pnpm 9+
  • Docker Desktop (for canonical Postgres/Redis)

Install

pnpm install

Preflight (recommended)

Quick sanity check for canonical vs legacy drift, env presence, and basic prerequisites:

pnpm tejo:preflight

Bootstrap env files (safe)

Creates missing env files from committed templates without overwriting existing files.

pnpm env:bootstrap

Start DB + seed + verify flow (recommended)

pnpm db:bootstrap:flow

Start web + api together

pnpm live

URLs

Health endpoints note

  • Canonical backend health is GET /api/v1/health on the API host.
  • In proxy mode (Next.js), http://localhost:3003/api/health is expected and rewrites to the backend health route.
  • Some files under archive/ may still mention legacy /health paths.

Wholesale Verification

Growth Docs

Always-On Stack (Docker)

To keep frontend and backend running independently 24/7:

pnpm stack:up      # Start db, redis, backend, frontend
pnpm stack:ps      # Check status

Note: On first startup (or after DB restarts), the backend may take a bit longer to become healthy while it runs Prisma schema sync. The Docker startup uses a small retry loop to avoid failing on transient database readiness.

Manage services:

pnpm stack:stop     # Stop backend & frontend (keep db/redis)
pnpm stack:restart  # Restart backend & frontend
pnpm stack:logs     # Follow logs (tail 100)
pnpm stack:down     # Stop all & remove containers

Tests (Canonical)

  • E2E (Playwright): pnpm test:e2e
  • Typecheck (all): pnpm typecheck

Legacy / Historical Folders

This repo also contains older/parallel implementations under backend/, frontend/, and other directories. Those are not the canonical Nx + pnpm workflow documented in docs/MASTER_PLAN.md.

If you're unsure what is canonical, start with: docs/CANONICAL_WORKSPACE_AND_LEGACY.md.

Tip: pnpm check:working-tree prints a quick canonical vs legacy summary.

For historical docs, see archive/old-docs/README.md.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •