A comprehensive platform for pet adoption, grooming services, veterinary care, and pet supplies.
āāā backend/
ā āāā database/
ā ā āāā migrations.ts # Database schema
ā ā āāā queries.ts # Database operations
ā āāā routes/
ā ā āāā auth.ts # Authentication routes
ā ā āāā pets.ts # Pet management
ā ā āāā services.ts # Grooming/vet services
ā ā āāā store.ts # Pet supplies store
ā ā āāā static.ts # Static file serving
ā āāā index.ts # Main server entry
āāā frontend/
ā āāā components/
ā ā āāā App.tsx # Main app component
ā ā āāā Navigation.tsx # Navigation bar
ā ā āāā PetCard.tsx # Pet display component
ā ā āāā ServiceCard.tsx # Service display component
ā āāā pages/
ā ā āāā Home.tsx # Landing page
ā ā āāā Adoption.tsx # Pet adoption page
ā ā āāā Services.tsx # Services page
ā ā āāā Store.tsx # Pet supplies store
ā āāā index.html # Main HTML template
ā āāā index.tsx # Frontend entry point
āāā shared/
āāā types.ts # Shared TypeScript types
āāā utils.ts # Shared utility functions
The application is automatically deployed on Val Town. The main entry point is /backend/index.ts which serves both the API and frontend.
POST /api/auth/register - User registrationPOST /api/auth/login - User loginGET /api/auth/profile - Get user profileGET /api/pets - List available petsPOST /api/pets - Register a pet for adoptionGET /api/pets/:id - Get pet detailsPOST /api/pets/:id/adopt - Submit adoption applicationGET /api/services/grooming - List grooming servicesPOST /api/services/grooming/book - Book grooming appointmentGET /api/services/veterinary - List vet servicesPOST /api/services/veterinary/book - Book vet appointmentGET /api/store/products - List pet suppliesPOST /api/store/cart - Add to cartPOST /api/store/checkout - Process order