djshah001/phisowale_server ? reverse-engineered prompt

Reverse engineered prompt

Build me the backend for a PhysioWale app that handles phone number sign up and login with OTP, using Twilio Verify. I want two main endpoints, one to send the code and one to verify it, and they should work for both normal users and doctors. When someone signs up, it should accept their phone number, name, password, confirm password, and a role type, then send an OTP and finish creating the account after the code is verified. Please include the basic server setup, database connection, models, validation, middleware, and a clean API structure that matches a production ready Node server.

Also add the usual pieces for file uploads or storage if needed, and make sure it is ready to deploy on Vercel. If anything is unclear from the existing code, look up current docs online and wire it up in a simple way that I can test quickly with Postman.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab