How amanmauryas/cognitivelab works
This is a Flask psychometrics web app centered on participant registration or login, a Stroop assessment, and stored results that participants can review in their profiles. Admins can inspect results and manage users. The app configures the database and registers the assessment and admin blueprints; models persist users, sessions, and trials. The Stroop route and client implementation are represented from the file tree, but their behavior was not sampled, so their internal relationships are not asserted.
Main entry points: app.py App routes · admin.py Admin routes · routes.py Stroop routes · index.html Assessment page
Components 9
Web application
- App routes
app.py - Web templates
templates
Stroop assessment
- Stroop routes
tests/stroop/routes.py - Stroop interface
tests/stroop/static/stroop.js - Assessment page
tests/stroop/templates/index.html
Persistence
- User and test records
core/database.py
Administration
- Admin routes
core/admin.py
Other components
- Participant
- Administrator
Connections 11
- Participant → App routes: uses
- Administrator → App routes: uses
- App routes → User and test records: reads and writes
app.py - App routes → Stroop routes: registers blueprint
app.py - App routes → Admin routes: registers blueprint
app.py - App routes → Web templates: renders
app.py - App routes → Stroop routes: redirects to assessment
app.py - Admin routes → User and test records: reads and writes
core/admin.py - Admin routes → Web templates: renders
core/admin.py - Stroop routes → Assessment page
- Assessment page → Stroop interface