How linnovate/mean works
This is a MEAN-stack starter application with an Angular client and an Express/Node API backed by MongoDB. The principal workflow is account registration or login: the client submits credentials, the API validates and stores a user or authenticates an existing one, then returns a JWT and user data for client-side session state. The graph also includes the documented admin and home areas, shared HTTP plumbing, and user persistence. Some connections are limited to the source index or README, so unsampled details are not inferred.
Main entry points: auth.service.ts Auth client · auth.route.js Auth endpoints · app-routing.module.ts App routes · auth-routing.module.ts Auth routes
Components 20
Angular client
- App shell
src/app/app.component.ts - App routes
src/app/app-routing.module.ts - Home view
src/app/home/home.component.ts - Admin view
src/app/admin/admin.component.ts - Admin guard
src/app/admin/admin-user-guard.ts - HTTP interceptors
src/app/interceptors/header.interceptor.ts
Authentication
- Auth routes
src/app/auth/auth-routing.module.ts - Login form
src/app/auth/login/login.component.ts - Registration form
src/app/auth/register/register.component.ts - Auth client
src/app/shared/services/auth/auth.service.ts - Token storage
src/app/shared/services/auth/token.storage.ts
Express API
- Express app
server/config/express.js - API routes
server/routes/index.route.js - Auth endpoints
server/routes/auth.route.js - JWT issuer
server/controllers/auth.controller.js - User endpoints
server/routes/user.route.js
User data
- User creation
server/controllers/user.controller.js - User model
server/models/user.model.js - MongoDB
Other components
- User browser
Connections 20
- User browser → App shell: uses
- App routes → Home view: routes to
src/app/app-routing.module.ts - App routes → Auth routes: routes to
src/app/app-routing.module.ts - App routes → Admin view: routes to
src/app/app-routing.module.ts - Auth routes → Login form: routes to
src/app/auth/auth-routing.module.ts - Auth routes → Registration form: routes to
src/app/auth/auth-routing.module.ts - Admin guard → Admin view: guards access
src/app/admin/admin-routing.module.ts - App shell → Auth client: loads session
src/app/app.component.ts - Login form → Auth client: submits credentials
- Registration form → Auth client: submits account
- Auth client → Token storage: stores token
src/app/shared/services/auth/auth.service.ts - Auth client → Auth endpoints: calls auth API
src/app/shared/services/auth/auth.service.ts - Express app → API routes: mounts API
server/config/express.js - API routes → Auth endpoints: dispatches to
server/routes/index.route.js - API routes → User endpoints: dispatches to
server/routes/index.route.js - Auth endpoints → User creation: creates user
server/routes/auth.route.js - Auth endpoints → JWT issuer: issues token
server/routes/auth.route.js - User endpoints → User creation: dispatches to
server/routes/user.route.js - User creation → User model: saves user
server/controllers/user.controller.js - User model → MongoDB: persists documents