JheyTim/cxs — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Node.js backend template for CX Services that follows the structure already described here.

I want it to be a reusable starting point for telecom style API modules, with folders for customer, product, service, resource, engaged party, common, layers, internal, and scripts. It should use Hapi handlers, request validation, repository style access for external systems, and be ready to run locally with Serverless offline. Include the module generator script flow so someone can create a new Level 0 and Level 1 module, then get a basic serverless setup, env config, package file, route, sample handler, validation model, and repository stub.

Please make the example module simple but complete, with a health check and one sample API that validates input and returns clean errors. Keep the code consistent with the standards in the README, including authorizer examples in serverless config where relevant. Add basic unit tests and a short README section explaining how to install, run locally, create a module, and test it. Look up current docs online if you need to.

Want more depth? Deep Reverse