I am a longtime developer getting up to speed on Node. I understand how a basic node/express/connect/etc. app works. However, I’ve created a site based on the Let’s Chat repo, and am having a hard time understanding how it works within Glitch. Specifically, I don’t understand how it starts, given there is no package.json or “start”:“node app.js” that I can find. I am able to clone the repo, put a db connection in the default.yaml, and it all works as expected. That’s great, but I’m not clear where I would add or update packages. Some specific questions:
I assume app.js is the “entry point” but how does Glitch know to start node at all?
Where is the equivalent to the start command that other sites typically have in package.json?
Does Glitch do anything with those docker files in /docker?
Bonus question: You’re supposed to be able to put the connection string in an LCB_DATABASE_URI environment variable in .ENV instead of default.yaml. This would be better for Glitch, but the app doesn’t seem to read this correctly- it only works with default.yaml, not .ENV. Is this a bug in Let’s Chat or something unique to the Glitch environment?
I’m sure all of this is just my ignorance- any help pointing me in the right direction here would be appreciated. Here is a glitch with my connection string removed: https://glitch.com/edit/#!/wry-expert