How nabixka/findit_pro works
FindIt is a lost-and-found application with a Vue frontend and an Express/PostgreSQL service. The user-facing flow covers account registration and login, then item discovery and personal item reports; refresh and logout support the authentication lifecycle. Source excerpts show the backend’s routed controller-to-service calls and database access. The frontend API client and dashboard are indexed but not excerpted, so their backend connections are shown only as unverified. The README contains no product description.
Main entry points: auth.service.js Authentication · auth.model.js Auth persistence · config.js PostgreSQL pools · index.js Page routing
Components 20
Vue frontend
- App entry
app/src/main.js - Page routing
app/src/index.js - Sign in / register
app/src/Page/Auth.vue - Item dashboard
app/src/Page/Dashboard.vue - API client
app/src/services/api.js
HTTP service
- Express server
service/server.js - Auth routes
service/routers/auth.router.js - Item routes
service/routers/items.router.js - Auth handlers
service/controller/auth.controller.js - Item handlers
service/controller/items.controller.js - Token verification
service/middlewares/token.middlewares.js
Domain logic
- Authentication
service/services/auth.service.js - Item queries
service/services/items.service.js - JWT and hashing
service/models/token.model.js
Persistence
- Auth persistence
service/models/auth.model.js - User lookup
service/models/user.model.js - Item persistence
service/models/items.model.js - PostgreSQL pools
service/db/config.js
Other components
- FindIt user
- PostgreSQL
Connections 24
- FindIt user → Sign in / register: uses
app/src/Page/Auth.vue - App entry → Page routing: loads
app/src/main.js - Page routing → Sign in / register: routes to
app/src/index.js - Page routing → Item dashboard: routes to
app/src/index.js - Sign in / register → API client: calls
app/src/Page/Auth.vue - Item dashboard → API client: uses
- API client → Express server: sends requests
- Express server → Auth routes: mounts
service/server.js - Express server → Item routes: mounts
service/server.js - Auth routes → Auth handlers: dispatches
service/routers/auth.router.js - Item routes → Item handlers: dispatches
service/routers/items.router.js - Item routes → Token verification: protects report
service/routers/items.router.js - Auth handlers → Authentication: calls
service/controller/auth.controller.js - Item handlers → Item queries: calls
service/controller/items.controller.js - Authentication → Auth persistence: calls
service/services/auth.service.js - Authentication → User lookup: looks up user
service/services/auth.service.js - Authentication → JWT and hashing: hashes tokens
service/services/auth.service.js - Item queries → Item persistence: queries
service/services/items.service.js - Auth persistence → PostgreSQL pools: queries
service/models/auth.model.js - Auth persistence → JWT and hashing: creates and hashes
service/models/auth.model.js - Auth persistence → User lookup: looks up user
service/models/auth.model.js - User lookup → PostgreSQL pools: queries
service/models/user.model.js - Item persistence → PostgreSQL pools: queries
service/models/items.model.js - PostgreSQL pools → PostgreSQL: connects
service/db/config.js