How gopavasanth/video-cut-tool-back-end works
Project type and purpose
• This is a full-stack, monolithic Node.js/Express application called “VideoCutTool.”
• It provides a web UI for cutting video clips and uploading them to Wikimedia Commons via MediaWiki OAuth.
• Key use cases: user authentication (OAuth), video selection/cutting, server-side processing and MongoDB storage of metadata, and uploading to an external service.
File structure
• Top level:
• app.js – main Express application setup
• bin/www – HTTP server launcher
• config.js – configuration (OAuth keys, ports)
• monitor.sh – health-check and restart script
• eventEmitter.js, websockets.js – cross-module event handling / real-time notifications
• Directories:
• routes/ – Express route handlers (index.js, controller.js, utils.js)
• models/ – Mongoose schemas and upload helper (User.js, Video.js, wikiUploadUtils.js)
• public/ – static assets (JS, CSS, client-side code)
• views/ – server-rendered templates (EJS and Jade)
• test-* – unit/integration tests for core logic and MongoDB interactions
• Configuration & deployment:
• .gitignore, .gitreview, COPYING – standard repo metadata
• monitor.sh and bin/monitor.sh – production process monitoring
README for additional insights
• Relies on MediaWiki OAuth; callback URL configured in config.js
• npm install / npm start for local dev; monitor.sh for production uptime
• Mentors and credits indicate it’s a GSoC project, no microservices—single code base