How lucky7xx/pankart_backend works
Project type and purpose
• This is a monolithic, full-stack style backend API for an e-commerce platform (“Pankart”).
• It handles user authentication, product CRUD, order management, and payment via Stripe.
• Built with Node.js/Express and backed by MongoDB.
File structure
• Top-level entry point: server.js
• models/ holds Mongoose schemas (User, Product, Order) → data layer
• routes/ defines Express routes (auth, products, orders, stripe) → API layer
• server/config/db.js → database connection
• server/controllers/ → business logic handlers for each domain
• server/middleware/ → cross-cutting concerns (auth checks, error handling)
• Deployment config: nodemon.json, vercel.json
README for additional insights
• Confirms feature set: JWT auth, role checks, payment workflow.
• Technology stack: Express, MongoDB/Mongoose, JWT, Stripe, bcrypt, dotenv, CORS.
• Mentions centralized error middleware, health check endpoint, environment variables.
Elements
• Data storage (MongoDB) in another
• External services (Stripe) in a third