AlfredoVargas2708/server ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Node server for keeping track of LEGO sets and related data.

I want it to connect to a database, use a few data models, and expose endpoints that can pull in set information from Brickset and Rebrickable, then store or update that data locally. It should be able to start from one main entry file, keep the code organized, and be easy to extend later if I want more LEGO related features.

Please make the app work end to end, so I can run it, call the API, and get useful results back without having to wire everything up myself. If you need current docs for Brickset or Rebrickable, look them up online and follow the latest approach. Keep the setup simple and clean, and make sure the database part and the external data fetching both actually work.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab