What you end up with
PantryAI running in your browser, on your own computer. It is free, and it stays free — there is no account, no trial and no subscription at the end of this.
- Time
- About 29 minutes
- Steps
- 12
- Cost
- Free
Before you start
These are one-time installs. If you have used PowerShell before, you may have them already — the first step checks.
Install Git
Run the installer, then reopen PowerShell.
Open installerYou know this worked when: Git responds with a version number
Install Node LTS
Run the LTS installer, then reopen PowerShell.
Open downloadYou know this worked when: Node responds with a version number
Install PantryAI
Open PowerShell
Keep it open beside this page.
You know this worked when: PowerShell is open
Check Git and Node
Git and the current Node LTS are required.
Type this into PowerShell, then press Enter.
git --version node --versionYou know this worked when: Git and Node respond with version numbers
Copy PantryAI to this PC
Type this into PowerShell, then press Enter.
cd ~ if [ ! -d pantryai/.git ]; then git clone https://github.com/jonpecruz/pantryai.git fiYou know this worked when: A pantryai folder appears
Open the PantryAI folder
Type this into PowerShell, then press Enter.
cd pantryaiYou know this worked when: Your terminal prompt is inside the pantryai folder
Use the reviewed version
Type this into PowerShell, then press Enter.
git checkout 3fab28ca037476ecfb55e49fd9fd7ca95a371f34You know this worked when: Git reports the reviewed commit
Install dependencies
Type this into PowerShell, then press Enter.
npm.cmd installYou know this worked when: The command finishes without an error
Run PantryAI
Keep PowerShell open.
Type this into PowerShell, then press Enter.
npm.cmd run devYou know this worked when: localhost:3000 responds
Open it in your browser
If a different port was picked, open that one instead.
Open localhost:3000You know this worked when: The app loads in the browser
Allow Camera
Approve it when Windows asks.
You know this worked when: Camera is turned on
Try it
PantryAI should be open in your browser.
You know this worked when: PantryAI works
If something goes wrong
Nothing here can damage your computer, and every step can be run again safely. If a command fails, the usual cause is the step before it not having finished.
Still stuck? Tell us what happened and we will fix the guide. Include the step number and we can usually reproduce it.