How ralffxp/salvapet works
SalvaPet is a full-stack pet adoption and donation platform. Visitors browse and filter adoptable animals, contact tutors through WhatsApp, submit animals for adoption, and create accounts; admins manage animals and users. The site also supports ratings, institutional information, and contact. The graph follows documented routes and API capabilities; some page-to-API links are documented or evident, while unsampled page implementations are not assumed.
Main entry points: main.tsx Route entry · serve.ts REST API · App.tsx Site shell · Animais.tsx Animal catalog
Components 17
Web application
- Route entry
src/main.tsx - Site shell
src/App.tsx - Navigation
src/Componetes/pages/Header/header.tsx - Footer
src/Componetes/pages/Footer/footer.tsx - Home and highlights
src/Componetes/pages/Home.tsx - About
src/Componetes/pages/Sobre.tsx - Contact
src/Componetes/pages/Contato.tsx
Adoption services
- Animal catalog
src/Componetes/pages/Animais.tsx - Donation form
src/Componetes/pages/Doar.tsx
Accounts and administration
- Login and signup
src/Componetes/pages/Login.tsx - Admin dashboard
src/Componetes/pages/Admin.tsx
Platform services
- Platform reviews
src/Componetes/pages/Avaliar.tsx - REST API
src/Back Ends/serve.ts - Database connection
src/Back Ends/database.ts - MySQL database
database/schema.sql
Other components
- Visitor
Connections 22
- Visitor → Route entry: opens site
src/main.tsx - Route entry → Site shell: routes through
src/main.tsx - Route entry → Home and highlights: routes to
src/main.tsx - Route entry → Animal catalog: routes to
src/main.tsx - Route entry → Donation form: routes to
src/main.tsx - Route entry → About: routes to
src/main.tsx - Route entry → Contact: routes to
src/main.tsx - Route entry → Login and signup: routes to
src/main.tsx - Route entry → Platform reviews: routes to
src/main.tsx - Route entry → Admin dashboard: routes to
src/main.tsx - Site shell → Navigation: renders
src/App.tsx - Site shell → Footer: renders
src/App.tsx - Animal catalog → REST API: fetches animals
src/Componetes/pages/Animais.tsx - Donation form → REST API: submits animal
src/Componetes/pages/Doar.tsx - Login and signup → REST API: authenticates and registers
src/Componetes/pages/Login.tsx - Platform reviews → REST API: reads and submits reviews
src/Componetes/pages/Avaliar.tsx - Animal catalog → WhatsApp: contacts tutor
README.md - Admin dashboard → REST API: manages records
README.md - Home and highlights → REST API: loads highlights
- REST API → Database connection: uses connection pool
src/Back Ends/serve.ts - Database connection → MySQL database: connects to
README.md - REST API → MySQL database: falls back to memory
README.md