Node.js projects on Glitch that need a server require a package.json file with a start command in the scripts field to run.
So be sure to include the following in package.json (see an example)
"scripts": { "start": "node server.js" }
- You can replace
server.js
with the name of your server start file. - Shell scripts also work.