bytesleo/nodetomic — reverse-engineered prompt

Reverse engineered prompt

Build me a clean starter backend in Node.js that I can use as the base for real apps. I want a REST API with Express, optional realtime updates over websockets, JWT based auth, MongoDB for persistent data, and Redis for shared state or caching. Please include a simple env based setup, sensible development and build scripts, and a couple of example endpoints so it is easy to understand how to extend.

I also want auto generated API docs in a browser, basic unit tests, and code quality setup so the project feels polished out of the box. The big goal is that this should be easy to run locally but also ready to scale later, including running in multiple processes and across multiple servers without relying on in memory state.

Please wire it up so I can clone it, add a .env file, start it, run tests, and build it without a lot of manual fixing. If anything is unclear, look up the current docs online and use sensible defaults.

Want more depth? Deep Reverse