How wall966/project-humankind works
HUMANKIND is a people-to-people activity platform: users browse categorized offers and requests, create listings, and request participation; listing creators approve or reject requests. The React interface is marked in development, while the Laravel API implements authentication, listing/category browsing, and participation management. Listing creation delegates description embedding to a Python service and selects a category by cosine similarity. README documents PostgreSQL persistence and the broader architecture; source excerpts show controller/service calls, but not database configuration at runtime.
Main entry points: api.php API routes · App.jsx React application · ParticipationController.php Participation workflow · AuthController.php Authentication
Components 21
React interface
- React application
front-end/src/App.jsx - Welcome screen
front-end/src/Welcome.jsx - Login form
front-end/src/Login.jsx - Listing form
front-end/src/Formulaire.jsx
Laravel API
- API routes
humankind/routes/api.php - Authentication
humankind/app/Http/Controllers/AuthController.php - Login validation
humankind/app/Http/Requests/Auth/LoginRequest.php - Registration validation
humankind/app/Http/Requests/Auth/RegisterRequest.php - Listing operations
humankind/app/Http/Controllers/ListingController.php - Category browsing
humankind/app/Http/Controllers/CategoryController.php - Participation workflow
humankind/app/Http/Controllers/ParticipationController.php - Join validation
humankind/app/Http/Requests/ParticipateRequest.php - Decision validation
humankind/app/Http/Requests/UpdateParticipationRequest.php
AI categorization
- Embedding and similarity
humankind/app/Services/EmbeddingService.php - Text embedding service
embedding-service/main.py
Activity domain
- User account
humankind/app/Models/User.php - Activity listing
humankind/app/Models/Listing.php - Activity category
humankind/app/Models/Category.php - Participation record
humankind/app/Models/Participation.php
Other components
- User
- PostgreSQL
Connections 26
- User → React application: uses
- React application → Welcome screen: routes to
front-end/src/App.jsx - React application → Login form: routes to
front-end/src/App.jsx - React application → Listing form: routes to
front-end/src/App.jsx - React application → API routes: consumes API
- API routes → Authentication: dispatches
humankind/routes/api.php - API routes → Listing operations: dispatches
humankind/routes/api.php - API routes → Category browsing: dispatches
humankind/routes/api.php - API routes → Participation workflow: dispatches
humankind/routes/api.php - Authentication → Login validation: validates login
humankind/app/Http/Controllers/AuthController.php - Authentication → Registration validation: validates signup
humankind/app/Http/Controllers/AuthController.php - Authentication → User account: creates account
humankind/app/Http/Controllers/AuthController.php - Listing operations → Embedding and similarity: requests embedding
humankind/app/Http/Controllers/ListingController.php - Embedding and similarity → Text embedding service: sends description
humankind/app/Services/EmbeddingService.php - Listing operations → Activity category: loads categories
humankind/app/Http/Controllers/ListingController.php - Embedding and similarity → Activity category: compares embeddings
humankind/app/Services/EmbeddingService.php - Listing operations → Activity listing: creates and reads
humankind/app/Http/Controllers/ListingController.php - Category browsing → Activity category: browses categories
humankind/app/Http/Controllers/CategoryController.php - Participation workflow → Join validation: validates request
humankind/app/Http/Controllers/ParticipationController.php - Participation workflow → Decision validation: validates decision
humankind/app/Http/Controllers/ParticipationController.php - Participation workflow → Activity listing: checks listing
humankind/app/Http/Controllers/ParticipationController.php - Participation workflow → Participation record: creates and updates
humankind/app/Http/Controllers/ParticipationController.php - User account → Participation record: has participations
humankind/app/Models/User.php - Activity listing → Activity category: belongs to
humankind/app/Models/Listing.php - Activity listing → Participation record: has participations
humankind/app/Models/Listing.php - API routes → PostgreSQL: persists domain data