usawirimran2005-byte/usawir-vogue-backend ? reverse-engineered prompt

Reverse engineered prompt

Build me the backend for a blog app called Usawir Vogue.

I want a simple API that can handle users, blog posts, and admin access, with login and protected routes so only approved people can create, edit, or delete posts. It should connect to a database, include models for the main data, and have routes, controllers, and middleware set up cleanly so it’s easy to extend later. Please also include a way to seed an admin user so I can get started right away.

Make it work as a solid REST API for a MERN style app, return clear JSON responses, and handle errors cleanly. If you need to check current docs for anything, go ahead and look them up online. I’d like the project to be ready to run locally with sensible environment settings and a straightforward structure that a frontend can plug into without much hassle.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab