How rahulp1273/recipe-hub works
Project type and purpose
• RecipeHub is a full-stack, monolithic recipe-sharing platform:
• Backend: Laravel 10 (PHP) with MVC (models, controllers, migrations)
• Frontend: Vue.js 3 + Vite, bundled into a “dist” directory for production
• Mobile shell: Capacitor (Android folder)
• Database: MySQL, managed via Laravel’s Eloquent ORM and migrations
• Auth: Laravel Sanctum (API token + session cookies)
File structure
• Top-level folders:
• app/ — Laravel MVC code (Controllers, Models, Requests, Providers)
• bootstrap/, config/ — framework bootstrap & configuration
• database/ — migrations & seeders for MySQL schema
• resources/js/ — Vue components, pages, router, global CSS/axios/bootstrap
• public/ & dist/ — web server entrypoints (public/index.php, dist/index.html + assets)
• android/ — Capacitor Android project for mobile deployment
• storage/ — file upload storage (public & private)
• routes/ — API and web routes definitions
• tests/ — Feature/Unit tests
• Build scripts & tools:
• composer.json for PHP dependencies
• package.json, vite.config.js, tailwind.config.js for frontend build
• .env.example for environment variables (DB, API keys, etc.)
Key architecture notes from README
• Single backend monolith exposing both web routes (Blade welcome page) and a JSON API under api.php
• Frontend is a SPA that communicates via Axios to /api/* endpoints secured by Sanctum
• Capacitor packages the same web build for mobile