How a596116/qrcode works
Project type and purpose
• This is a full-stack web application for uploading images or videos and generating QR-code links.
• The “web/” directory hosts a Nuxt.js frontend, and “express-upload-service/” contains an Express.js backend API that handles file uploads and QR-code creation.
File structure
• Top-level
• Dockerfile, docker-compose.yml, start.sh, web-start.sh – orchestration & container definitions
• express-upload-service/ – backend service
• web/ – frontend service
• express-upload-service/
• index.js – main Express app
• public/ – static assets (e.g., generated QR codes)
• ecosystem.config.cjs – PM2 config for production
• web/
• nuxt.config.ts – Nuxt configuration
• pages/, layouts/, assets/, utils/api.ts – Vue pages, layout, styles, and API wrapper
• .env.* – environment variables for API_SERVER_URL, SITE_URL
• Dockerfile & ecosystem.config.cjs – container & process management
README for additional insights
• dev commands: “npm run dev” spins up both services on ports 4088 (frontend) and 3000 (backend)
• production: “npm run build” + “npm run start” or docker-compose up
Detail
• Config files (nuxt.config.ts, ecosystem.config.cjs) near their services
• Mount paths: ./express-upload-service/uploads → /app/uploads