How imsaurabh1/masterthesis_aiplanningsoftwarerepository works
Project type and purpose
• This is a full-stack web application (“AI Planning Software Repository”) that provides a React-based UI for users to discover, filter, sort, and add metadata about AI planning tools.
• The backend is a Node.js/Express REST API with a MySQL database, plus an email service (Nodemailer) to send confirmations.
File structure
• Top-level directories:
• backend/ – Express app (app.js), configuration (config/db.js), models (toolsModel.js), routes (tools.js), service layer (toolAddService, toolSearchService, etc.), utilities (emailUtils), and tests.
• frontend/ – React app (src/components, hooks, tests), styling (Tailwind CSS, CSS files), config (Babel, PostCSS), public assets, and build config.
• db/ – SQL schema for MySQL.
• docker-compose.yml – Defines three containers: frontend, backend, mysql_db.
• Architectural pattern in backend: layered approach (Routes → Services → Models → Database).
• Frontend follows a component/hook structure with a clear separation of UI, state, and side-effects (fetching).
README for additional insights
• Confirms Docker containerization, tech versions, port mapping (3000 for frontend, 5000 for backend, MySQL on standard port).
• Describes testing stacks (Jest/RTL for frontend; Mocha/Chai/Sinon/Supertest for backend).
• Mentions Material-UI inputs and Tailwind CSS for styling.
Detailed capture of essential architectural elements
• Within the backend container, break out:
• app.js (entry point) → config/db.js → models → services → routes → utils
• Within the frontend container, group:
• src/components (UI elements), src/hooks (data logic), public folder (static assets)
• Port mappings from Docker Compose (3000:3000, 5000:5000, 3306:3306).
• Denote network connections as defined in docker-compose.yml.