How mauzg19/proyecto-restaurante works
Project type and purpose
• This is a full-stack online restaurant ordering system. The React-based frontend (frontend-react) provides customer, admin and super-admin UIs. The Spring Boot backend (backend-spring-boot) exposes REST APIs for authentication, menu management, ordering, payments (via Stripe), notifications (via email), reviews, etc. A MySQL database stores persistent data.
File structure
• Top-level modules:
• frontend-react – React app with Redux state slices for customers, admins and super-admins, Nginx config and Dockerfile.
• backend-spring-boot – Spring Boot app with controllers, services, repositories, models, DTOs, config (JWT, email, Stripe), Dockerfile, Maven wrapper.
• docker-compose.yml – orchestrates backend, frontend, and MySQL containers in Docker.
• Patterns & configs:
• MVC style in Spring Boot (controllers → services → repositories).
• Redux/Flux in React (ActionCreators → Reducers → Store).
• JWT-based authentication.
• External integrations: Stripe payment gateway, SMTP email.
• Docker & Docker Compose for containerized deployment.
README for additional insights
• Backend requires Java 17, MySQL setup, application.properties holds DB, Stripe and email credentials.
• Frontend runs via npm / npm start.