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
-
Clone the repository and go into it:
git clone https://github.com/kenwalger/cellar-api.git cd cellar-api -
Check your Node.js version. It must be 22 or newer:
node --version -
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
failis0. -
Create the scratch folder for your copies and outputs. Git ignores it:
mkdir -p lab-work -
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
- The tests run without installing anything or contacting a service. Why does that matter for a tool whose output people need to trust?
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.