ritta87/CodeAlpha-MERN-eventmanagement-BackenedProject ? reverse-engineered prompt

Reverse engineered prompt

Build me the backend for an Event Management System where people can sign up, log in, browse events, register for events, see their registrations, and cancel them. I also need an admin side where an admin can log in, create new events, update or delete events, and view which users registered for each event.

Please set it up as a clean Node and Express API with MongoDB for storage, Mongoose models, JWT based login, and the needed middleware for protecting user and admin routes. Make sure the routes and controllers are organized clearly, and include everything needed so I can test the API in Postman right away. If you need to check current docs for best practices, feel free to look them up online.

I want the project to feel ready to run, with sensible validation, error handling, and a simple structure that matches a real MERN backend.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab