How shawnmm777/anpanweb works
This is a travel-planning and booking web application: users enter through a home page, can explore city routes on an interactive map, manage an account, and reach booking and payment screens. The backend provides signup/login and payment endpoints, with MySQL-backed account operations and email notifications. The README gives only run instructions, so the map reflects the sampled frontend routing and backend calls; several frontend-to-backend links and the payment database wiring are not established by the excerpts.
Main entry points: App.js App router · signupauth.js Signup API · server.js Express server · loginauth.js Login and reset API
Components 23
Travel frontend
- App router
src/App.js - Home
src/Components/Homepage.js - Login
src/Components/Login.js - Signup
src/Components/Signup.js - Forgot password
src/Components/forgotpassword.js - Reset password
src/Components/resetpassword.js - Route planner
src/Components/MapRouter.js - Account
src/Components/account.js - Booking
src/Components/booking.js - Drafts
src/Components/Drafts.js - Second page
src/Components/second.js
Identity and email
- Express server
BACKEND/server.js - Signup API
BACKEND/auth/signupauth.js - Login and reset API
BACKEND/auth/loginauth.js - Admin auth
BACKEND/auth/adminauth.js - User database
BACKEND/db.js - Email service
BACKEND/emailService.js
Payments
- Payment form
src/Components/payment.js - Payment confirmation
src/Components/paymentConfimation.js - Payment API
BACKEND/routes/payments.js - Payment controller
BACKEND/controllers/paymentController.js - Payment store
Other components
- Visitor
Connections 23
- Visitor → App router: opens
src/App.js - App router → Home: routes to
src/App.js - App router → Login: routes to
src/App.js - App router → Signup: routes to
src/App.js - App router → Forgot password: routes to
src/App.js - App router → Reset password: routes to
src/App.js - App router → Route planner: routes to
src/App.js - App router → Account: routes to
src/App.js - App router → Booking: routes to
src/App.js - App router → Drafts: routes to
src/App.js - App router → Second page: routes to
src/App.js - App router → Payment form: routes to
src/App.js - App router → Payment confirmation: routes to
src/App.js - Signup → Signup API: posts signup
src/Components/Signup.js - Express server → Signup API: mounts
BACKEND/server.js - Express server → Login and reset API: mounts
BACKEND/server.js - Express server → Payment API: mounts
BACKEND/server.js - Signup API → User database: queries
BACKEND/auth/signupauth.js - Signup API → Email service: sends welcome
BACKEND/auth/signupauth.js - Login and reset API → User database: queries
BACKEND/auth/loginauth.js - Login and reset API → Email service: sends reset
BACKEND/auth/loginauth.js - Payment form → Payment API: posts payment
src/Components/payment.js - Payment API → Payment store: queries