The backend supports a broad feature surface: social interactions, community groups, brand/business workflows, moderation systems, search, geospatial discovery, and analytics endpoints.
Authentication, Verification, and Password Security
01JWT authentication, bcrypt password hashing, verification emails, reset tokens with expiry, activation resend, and role-aware access control underpin the account system.
- Email verification system
- Reset password with token expiry
- JWT token verification middleware
- Role-aware route protections
Social Graph and User Profile Modeling
02User profiles include GeoJSON location, sports interests/experience levels, questionnaire responses, social relationships, search criteria, and notification preferences.
- GeoJSON location on user model
- Sports + experience + frequency modeling
- Friends/following/blocking structures
- Questionnaire and search criteria persistence
Posts, Comments, and Feed Infrastructure
03Posts support text/images/location/tagging, nested comments, likes, soft-delete, edit tracking, flagging, and feed-level pagination/infinite scroll consumption.
- Nested comment schema
- Soft delete support on posts
- Mention support in posts/comments
- Feed pagination for infinite scroll
Groups and Community Spaces
04Public/private groups include geospatial location metadata, membership controls, invite/request workflows, sport and experience filtering, and group feeds.
- Private/public join flows
- Invites and join request approvals
- Group-specific feeds
- 2dsphere group location indexing
Search, Geospatial, and Discovery APIs
05Multi-entity search spans users, groups, brands, and articles with filtering, pagination, geospatial constraints, and blocking relationship enforcement.
- Hybrid search across multiple entities
- Location radius filtering
- Blocking-aware search results
- Verified/published/public visibility filtering
Brands, Articles, and Commerce Features
06Brand profiles, article publishing, follower analytics, subscriptions, and Stripe-backed business flows create a business/creator surface inside the community platform.
- Brand managers and copywriters
- Article draft/publish/archive workflows
- Follower tracking and engagement metrics
- Stripe subscription/customer status handling
Moderation, Flagging, and Role Systems
07Polymorphic flagging, review workflows, resolution tracking, role models, and user-role assignments support trust and platform governance.
- Polymorphic flag model via refPath
- Pending -> Reviewed -> Resolved workflow
- Resolution notes/reviewer metadata
- Role and UserRole data layer
Mailers, Cron Jobs, and Notification Backends
08Email services handle verification, resets, invites, and digests, while scheduled tasks support digest delivery and periodic maintenance workflows.
- Nodemailer email delivery
- HTML email templates
- node-cron scheduled jobs
- Notification digest scheduling