How boulderproblem/boulder-problem-api works
BoulderProblem is an Adonis-based backend API for a bouldering app. Clients call registered HTTP routes, which dispatch to controllers for authentication, climbing locations and routes, contests, social content, and messaging; those handlers operate on Lucid models backed by PostgreSQL. The README confirms the Adonis/PostgreSQL stack. Controller and model links are included only where the supplied excerpts or SOURCE INDEX support them; unsampled controller internals are not inferred.
Main entry points: routes.ts HTTP routes · messages_controller.ts Direct messaging · auth_controller.ts Authentication · users_controller.ts User profiles
Components 21
API entry
- HTTP routes
start/routes.ts - PostgreSQL
Identity
- Authentication
app/controllers/auth_controller.ts - User profiles
app/controllers/users_controller.ts - User records
app/models/user.ts - Key encryption
app/services/crypto.ts
Climbing domain
- Climbing places
app/controllers/places_controller.ts - Climbing zones
app/controllers/zones_controller.ts - Climbing routes
app/controllers/ways_controller.ts - Route records
app/models/way.ts - Climbing statistics
app/controllers/stats_controller.ts - Climbing walls
app/controllers/walls_controller.ts
Social features
- Posts and comments
app/controllers/posts_controller.ts - Post records
app/models/post.ts - Activity feed
app/controllers/feed_controller.ts
Community features
- Competitions
app/controllers/contests_controller.ts - Contest records
app/models/contest.ts - Direct messaging
app/controllers/messages_controller.ts - Conversation records
app/models/conversation.ts - Message records
app/models/messages.ts
Other components
- App client
Connections 30
- App client → HTTP routes: calls API
start/routes.ts - HTTP routes → Authentication: dispatches auth
start/routes.ts - HTTP routes → User profiles: dispatches users
start/routes.ts - HTTP routes → Posts and comments: dispatches posts
start/routes.ts - HTTP routes → Activity feed: dispatches feed
start/routes.ts - HTTP routes → Climbing places: dispatches places
start/routes.ts - HTTP routes → Climbing zones: dispatches zones
start/routes.ts - HTTP routes → Climbing routes: dispatches routes
start/routes.ts - HTTP routes → Competitions: dispatches contests
start/routes.ts - HTTP routes → Direct messaging: dispatches messages
start/routes.ts - HTTP routes → Climbing statistics: dispatches stats
start/routes.ts - HTTP routes → Climbing walls: dispatches walls
start/routes.ts - Authentication → User records: queries users
app/controllers/auth_controller.ts - Authentication → Key encryption: encrypts keys
app/controllers/auth_controller.ts - User profiles → User records: queries users
app/controllers/users_controller.ts - Posts and comments → Post records: queries posts
app/controllers/posts_controller.ts - Posts and comments → PostgreSQL: persists content
- User profiles → PostgreSQL: persists profiles
- Climbing places → PostgreSQL: stores place data
- Climbing zones → PostgreSQL: stores zone data
- Climbing routes → Route records: uses route model
app/controllers/ways_controller.ts - Climbing routes → PostgreSQL: stores route data
- Competitions → Contest records: queries contests
app/controllers/contests_controller.ts - Direct messaging → Conversation records: queries conversations
app/controllers/messages_controller.ts - Direct messaging → Message records: queries messages
app/controllers/messages_controller.ts - Direct messaging → Key encryption: encrypts group keys
app/controllers/messages_controller.ts - Competitions → PostgreSQL: stores contest data
- Direct messaging → PostgreSQL: stores conversations
- Activity feed → PostgreSQL: reads activity
- Climbing statistics → PostgreSQL: reads statistics