How leoncaal/visitmatina works
Visit Matina is a tourism-discovery website for Matina, with a React client and an Express API. Visitors browse destination and activity pages, read blog posts, contact the alliance, and can register, review shops, and shop/pay; administrators manage site content. The graph shows the documented client routes and the API’s major domain branches. Source evidence is uneven: review and shop wiring is visible, while several other backend and commerce implementations were not sampled, so their internal links are omitted.
Main entry points: App.js Route application · index.js API route registry · reviewsActions.js Review requests · Reviews.jsx Shop reviews
Components 27
Visitor website
- Route application
client/src/App.js - Tourism pages
client/src/components/pages - Blog pages
client/src/components/pages/Blog - Account pages
client/src/components/pages/Login - Admin dashboard
client/src/components/pages/Admin - Contact page
client/src/components/pages/Contact - Shared layout
client/src/components/Layout/Layout.js - Shopping cart
client/src/components/common/cart/cart.js - Shop reviews
client/src/components/common/Reviews/Reviews.jsx - Review form
client/src/components/common/Reviews/ReviewForm/ReviewForm.jsx - Review discussion
client/src/components/common/Reviews/ReviewThread/ReviewThread.jsx
Client state
- Review requests
client/src/redux/reviewsActions.js - Review state
client/src/redux/reviewsSlice.js - Local storage hook
client/src/components/localStorage/useLocalStorage.js
API services
- HTTP API
api/src/app.js - API route registry
api/src/routes/index.js - Review endpoints
api/src/routes/reviews/reviews.js - Review operations
api/src/controllers/reviews/reviews.js - Shop endpoints
api/src/routes/shops/shopsRoutes.js - Shop operations
api/src/controllers/shops/shopsControllers.js - Posts and products
api/src/routes - Users, comments, mail, payments
api/src/routes
Persistence and media
- Sequelize database
api/src/db.js - Cloudinary upload
api/src/helpers/CloudinaryUpload.js - PostgreSQL
Other components
- Visitor
- Cloudinary
Connections 28
- Visitor → Route application: opens
client/src/App.js - Route application → Tourism pages: routes to
client/src/App.js - Route application → Blog pages: routes to
client/src/App.js - Route application → Account pages: routes to
client/src/App.js - Route application → Admin dashboard: routes to
client/src/App.js - Route application → Contact page: routes to
client/src/App.js - Route application → Shared layout: wraps pages
client/src/App.js - Shared layout → Shopping cart: renders
client/src/components/Layout/Layout.js - Shop reviews → Review requests: dispatches fetch
client/src/components/common/Reviews/Reviews.jsx - Shop reviews → Review form: renders
client/src/components/common/Reviews/Reviews.jsx - Shop reviews → Review discussion: renders
client/src/components/common/Reviews/Reviews.jsx - Review form → Review requests: dispatches requests
client/src/components/common/Reviews/ReviewForm/ReviewForm.jsx - Review discussion → Review requests: dispatches requests
client/src/components/common/Reviews/ReviewThread/ReviewThread.jsx - Review discussion → Local storage hook: uses
client/src/components/common/Reviews/ReviewThread/ReviewThread.jsx - Review requests → Review state: dispatches updates
client/src/redux/reviewsActions.js - Review requests → HTTP API: calls review API
client/src/redux/reviewsActions.js - HTTP API → API route registry: mounts
api/src/app.js - API route registry → Review endpoints: registers
api/src/routes/index.js - API route registry → Shop endpoints: registers
api/src/routes/index.js - API route registry → Posts and products: registers
api/src/routes/index.js - API route registry → Users, comments, mail, payments: registers
api/src/routes/index.js - Review endpoints → Review operations: calls
api/src/routes/reviews/reviews.js - Shop endpoints → Shop operations: calls
api/src/routes/shops/shopsRoutes.js - Review operations → Sequelize database: queries
api/src/controllers/reviews/reviews.js - Shop operations → Sequelize database: queries
api/src/controllers/shops/shopsControllers.js - Shop operations → Cloudinary upload: uploads images
api/src/controllers/shops/shopsControllers.js - Cloudinary upload → Cloudinary: uploads to
- Sequelize database → PostgreSQL: connects to
api/src/db.js