View on GitHub

Winery API Document Automation Lab

A hands-on developer learning lab for deterministic document generation, validation, estimation, and provenance.

Exercise 0: Set up

Time: 5 minutes Objective: get a working copy and confirm that the parser, estimator, and generator tests pass on your machine. Prerequisites: Git, Node.js 22 or newer, and a POSIX shell (Git Bash on Windows). See the lab overview.

Steps

  1. Clone the repository and go into it:

    git clone https://github.com/kenwalger/cellar-api.git
    cd cellar-api
    
  2. Check your Node.js version. It must be 22 or newer:

    node --version
    
  3. Run the three JavaScript test suites. None of them needs npm install, a network connection, or a Google account:

    cd parser && npm test && cd ..
    cd production && npm test && cd ..
    cd apps-script && npm test && cd ..
    

    Expected: each suite ends with a summary in which fail is 0.

  4. Create the scratch folder for your copies and outputs. Git ignores it:

    mkdir -p lab-work
    
  5. Optional: to run the fictional winery API that the course teaches, install uv and follow Running the API. The lab doesn’t need it.

Reflection

Completion criterion

All three test suites report fail 0, and lab-work/ exists at the repository root.

Evidence to capture

Nothing yet. If a suite fails, keep its output for troubleshooting.

Next: Exercise 1: Inspect the source