How axio-matrix/serbili_backend works
Project type and purpose
• This is a Node.js/Express backend API for an e-commerce platform.
Evidence:
• Top-level app.js, controllers/, routes/ and db/ folders
• Models and migrations for users, products, carts, orders, reviews, notifications, tokens
• Utilities for OTP verification, image uploads, external payment integration (chargilyService)
File structure
• app.js: bootstraps the Express application
• controllers/: business-logic handlers for each domain (auth, product, cart, order, profile, reviews, notifications, tracking, warehouse review, admin)
• routes/: maps HTTP endpoints to controllers
• db/config & db/config/database.js: database connection settings
• db/migrations & db/models: Sequelize migrations and model definitions for all persistent entities
• middlewares/: cross-cutting concerns (authentication, authorization, error handling, 404s)
• utils/: shared helpers (OTP, image upload, payment service, base64 image save)
• errors/: custom API error classes
Readme insights
• (Empty) – we infer architecture solely from structure: an MVC-style layered API with an ORM and external service integration.