Node/Express on Chromebook: Cannot GET /summary”

Hi, I’m learning backend development on a Chromebook (Linux Beta / Crostini) and having trouble with a simple Express server.

My server.js file looks like this:

const express = require('express');

const app = express();

const port = 3000;

// Simple home route
app.get('/', (req, res) => {
  res.send('Client Portal API is running');
});

// Summary route
app.get('/summary', (req, res) => {
  res.json({
    user: 'Jane Doe',
    status: 'Active',
    plan: 'Standard',
    balance: '$120.00',
    nextAppointment: '2026-02-01',
    primaryContact: 'Alex Smith',
    lastLogin: '2026-01-10 14:32',
  });
});

app.listen(port, () => {
  console.log(`Server listening on http://localhost:${port}`);
});

cd ~/client-portal-backend
node server.js

The terminal prints:
Server listening on http://localhost:3000Then, in Firefox inside Linux, I go to:
http://localhost:3000/summaryBut I see this message in the browser:
Cannot GET /summary

hen what you already pasted:Device: Chromebook with Linux (Beta) / Crostini
Node version: (output of node -v)
npm version: (output of npm -v)

I’ve attached screenshots of:

  • The terminal running node server.js
  • The browser showing http://localhost:3000/summary and the error message

Can someone please help me figure out?After that:Make sure Category is set to Backend Development or JavaScript. �Click the image icon in the toolbar to upload your screenshots. �

is your root path working okay? (we can’t see any of the screenshots you mentioned btw)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.