How marwahns/back-end-semarang-group-2 works
Project type and purpose
• This is the backend API layer of a full-stack e-commerce platform (“Creatopia”).
• Built with Node.js & Express, it exposes REST endpoints for contact, media, newsletter, product, and review features.
• It persists data in MySQL via Sequelize ORM and is intended to serve both web and mobile frontends.
File structure
• Top-level entry: server.js (Express app initialization & middleware).
• config/dbConfig.js: database connection settings (MySQL).
• models/ (Sequelize models + index.js for model registration).
• controllers/ (business-logic handlers per resource).
• routes/ (Express routers mapping URLs → controller methods).
• package.json: dependencies (express, sequelize, mysql2, dotenv, etc.).
• .env.example: environment variables for DB credentials and ports.
README insights
• Confirms use of Node.js, Express, MySQL, Sequelize.
• Describes e-commerce domain (handicraft marketplace).
• Mentions deployment target (Railway) and testing tool (Postman).
Diagramming conventions
• Blue = network/API layers
• Green = data persistence
• Orange = business logic
• Gray = external dependencies
– Routes
– Controllers
– Models
Key reminders
• Configuration (port, environment) near server bootstrap.
• Five resource flows (contact, media, newsletter, product, review).
• If deployed behind a reverse proxy or containerized, show Docker/Railway block.