How cchillara/crm-application works
SHNOOR is presented as a CRM for customer, lead, deal, and activity management, but the sampled product UI is primarily a landing page and account authentication; it does not show implemented CRM data workflows. The evidenced user journey is landing page → sign-up or sign-in, with sign-in obtaining a Firebase token and calling the protected backend route. Backend startup also references database initialization, but its persistence behavior is not shown in the excerpts.
Main entry points: Login.jsx Account login · App.jsx Landing and routing · Signup.jsx Account signup · auth.routes.js Auth route
Components 15
Web experience
- Landing and routing
my-react-app/src/App.jsx - Account signup
my-react-app/src/auth/Signup.jsx - Account login
my-react-app/src/auth/Login.jsx
Identity
- Firebase client
my-react-app/src/firebase.js - Token verification
backend/src/middleware/authmiddleware.js - Firebase Admin auth
backend/src/firebase-admin.js
Backend API
- Express app
backend/src/app.js - Auth route
backend/src/routes/auth.routes.js - Protected profile
backend/src/controllers/auth.controller.js - API response helper
backend/src/utils/apiResponse.js - Async handler
backend/src/utils/asyncHandler.js
Backend runtime
- HTTP app entry
backend/src/index.js - Database initialization
backend/src/db/index.js
Other components
- CRM visitor
- Firebase Authentication
Connections 17
- CRM visitor → Landing and routing: opens
- Landing and routing → Account signup: routes signup
my-react-app/src/App.jsx - Landing and routing → Account login: routes login
my-react-app/src/App.jsx - Account signup → Firebase client: uses auth
my-react-app/src/auth/Signup.jsx - Account login → Firebase client: uses auth
my-react-app/src/auth/Login.jsx - Firebase client → Firebase Authentication: initializes
my-react-app/src/firebase.js - Account signup → Firebase Authentication: creates account
my-react-app/src/auth/Signup.jsx - Account login → Firebase Authentication: signs in
my-react-app/src/auth/Login.jsx - Account login → HTTP app entry: requests protected API
my-react-app/src/auth/Login.jsx - HTTP app entry → Express app: starts
backend/src/index.js - HTTP app entry → Database initialization: initializes
backend/src/index.js - Express app → Auth route: mounts auth routes
backend/src/app.js - Auth route → Token verification: verifies token
backend/src/routes/auth.routes.js - Auth route → Protected profile: dispatches protected route
backend/src/routes/auth.routes.js - Token verification → Firebase Admin auth: verifies ID token
backend/src/middleware/authmiddleware.js - Protected profile → Async handler: wraps handler
backend/src/controllers/auth.controller.js - Protected profile → API response helper: returns profile response
backend/src/controllers/auth.controller.js