Update deps and clean quickstart drift#236
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates project dependencies, removes unused packages, and simplifies the configuration by removing several database initialization scripts. The README has been updated with instructions for setting up the local environment. A suggestion was made to include the setup command for the test environment file to ensure that local integration tests can be executed without missing configuration errors.
| All configuration for communication with the database is read from the environment variables. We have provided a convenience feature in this quickstart to read the environment variables from a local file, `dev.env` in the `config` folder. | ||
|
|
||
| ```sh | ||
| cp config/dev.env.example config/dev.env |
There was a problem hiding this comment.
The npm test script in package.json is configured to use ./config/test.env. Since you are now explicitly instructing users to create config/dev.env from the example file, you should also include the command to create config/test.env. This ensures that users can run the integration tests locally without encountering errors about missing environment files.
| cp config/dev.env.example config/dev.env | |
| cp config/dev.env.example config/dev.env | |
| cp config/test.env.example config/test.env |
Summary
masterand refresh the lockfile.config/dev.env.exampleand includesDB_BUCKET_NAME.Verification
fnm use 20 && npm installnpm test✅ (19/19)npm start+ manual API walkthrough on localhost ✅Evidence
Fresh rerun from
masterpassed the Jest suite on Node 20.Walkthrough exercised airport list/direct-connections, airline list/to-airport, and full airport/airline/route CRUD against the running app.
README/env drift fixed: the repo no longer advertises
IS_CAPELLA/DELAY, and the setup snippet now tells readers to copyconfig/dev.env.examplebefore editing.`
Walkthrough result summary
airport/list→ 200 (Abbevillesample)airport/direct-connections→ 200 (AAEsample destination)airline/list→ 200 (40-Mile Airsample)airline/to-airport→ 200 (Air Francesample)tutorial-maintenance/runs/couchbase-examples__nodejs-quickstart/2026-04-29-fresh-from-main/verification.mdtutorial-maintenance/runs/couchbase-examples__nodejs-quickstart/2026-04-29-fresh-from-main/commands.txtNotes
init-db/init-test-db/init-test-indexscripts still referenced missing files onmaster, so this PR removes those dead entry points instead of leaving them advertised.