Ivan-Malakhovskyi/contacts_rest_api ? reverse-engineered prompt

Reverse engineered prompt

Build me a REST API for a contacts manager app using Node, Express, TypeScript, and MongoDB.

I want users to be able to sign up, get a verification email, confirm their account with a link, sign in, and resend the verification email if needed. Once logged in, they should be able to view their current profile, update their subscription, and upload an avatar.

Also build full contacts CRUD, so users can create, view, edit, and delete contacts. Contacts should support pagination and filtering, and each contact can have an avatar uploaded too.

Please include proper validation, JWT protected routes, password hashing, and solid error handling. Set it up so it is easy to run locally, with environment variables, and use the existing API route structure. If you need current docs for any package details, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab