How gitwithudith/lnf works
Campus Lost and Found is a Flask website for students to post and browse lost or found items, then contact one another through account-based messaging. The main workflow is item discovery or posting, followed by direct communication and marking a returned item resolved. Authentication, item management, and messaging are distinct route domains backed by shared SQLAlchemy models; uploaded images are stored under the app’s static uploads directory. The README also describes registration/login and category browsing. Relationships shown here are limited to route and application-factory calls visible in the excerpts; templates and deployment integrations were not inspected.
Main entry points: __init__.py App factory · models.py Domain models · items.py Item routes · auth.py Account routes
Components 10
Flask application
- App factory
app/__init__.py - App configuration
config.py - SQL database
- Domain models
app/models.py
Accounts
- Account routes
app/routes/auth.py
Lost and found
- Item routes
app/routes/items.py - Home routes
app/routes/__init__.py - Item image files
app/static/uploads
User messaging
- Message routes
app/routes/messages.py
Other components
- Student
Connections 16
- App factory → App configuration: loads
app/__init__.py - App factory → Domain models: initializes
app/__init__.py - App factory → Account routes: registers
app/__init__.py - App factory → Item routes: registers
app/__init__.py - App factory → Message routes: registers
app/__init__.py - App factory → Home routes: registers
app/__init__.py - App factory → SQL database: creates tables
app/__init__.py - Student → Account routes: registers or logs in
README.md - Student → Item routes: posts or browses
README.md - Student → Home routes: views recent items
app/routes/__init__.py - Student → Message routes: contacts users
README.md - Account routes → Domain models: queries users
app/routes/auth.py - Item routes → Domain models: queries items
app/routes/items.py - Item routes → Item image files: saves images
app/routes/items.py - Message routes → Domain models: queries messages
app/routes/messages.py - Home routes → Domain models: queries recent items
app/routes/__init__.py