It is quite simple though:
1. Decide on an architecture that scales well.
2. Redesign the architecture to maximise opportunities for auto generating code/schemas/protocols/client/server/DB etc.
3. Define your actual application in a declarative language. I use my own custom language but you can use JSON/YAML/…
4. Write a generator that reads the declarative files and generates as much of the code needed as possible to implement the application.
5. Hand code what remains (basically the core biz logic).
That’s pretty much it. I have done this exercise more than 9 times and I learned a lot doing it. I highly recommend giving it a go yourself. You learn a true super power and it is great fun.