How justdjango/facial-recognition-saas works
This is a Django REST and React facial-recognition API product. The main workflow is a user uploading an image through the demo or authenticated API; the backend validates and saves the upload, runs face detection, and returns recognition data. Account workflows cover signup/login, account settings, API keys, and subscription billing through Stripe. The graph reflects the shown calls and README capabilities; unsampled backend and frontend behavior is represented only where the tree or documentation supports it.
Main entry points: views.py REST API views · routes.js Page routing · auth.js Auth actions · App.js React app
Components 22
React experience
- React app
src/App.js - Page routing
src/routes.js - Image demo
src/containers/Demo.js - Landing page
src/containers/LandingPage.js - Responsive layout
src/containers/Layout.js
Identity and accounts
- Login and signup
src/containers/Login.js - Signup form
src/containers/Signup.js - Auth actions
src/store/actions/auth.js - Auth state
src/store/reducers/auth.js - Account settings
src/containers/Account/ChangeEmail.js - API key page
src/containers/Account/APIKey.js
Django API
- REST API views
core/views.py - API routes
core/urls.py - Auth endpoints
home/settings/base.py - Request serializers
core/serializers.py
Recognition and persistence
- Face detection
core/image_detection.py - User and usage data
core/models.py
Membership and billing
- Billing pages
src/containers/Account/Billing.js - Subscription form
src/containers/Account/SubscribeForm.js
Other components
- Visitor or user
- Stripe
- Recognition response
Connections 26
- Visitor or user → React app: uses
- React app → Page routing: renders
src/App.js - React app → Auth actions: checks session
src/App.js - React app → Responsive layout: wraps pages
src/App.js - Page routing → Image demo: routes to
src/routes.js - Page routing → Landing page: routes to
src/routes.js - Page routing → Login and signup: routes to
src/routes.js - Page routing → Signup form: routes to
src/routes.js - Page routing → Account settings: routes to
src/routes.js - Page routing → Billing pages: routes to
src/routes.js - Page routing → API key page: routes to
src/routes.js - Login and signup → Auth actions: dispatches
src/containers/Login.js - Signup form → Auth actions: dispatches
src/containers/Signup.js - Auth actions → Auth state: dispatches actions
src/store/reducers/auth.js - Auth actions → Auth endpoints: posts credentials
src/store/actions/auth.js - Image demo → REST API views: uploads image
src/containers/Demo.js - API routes → REST API views: routes requests
core/urls.py - REST API views → Request serializers: validates upload
core/views.py - REST API views → Face detection: detects faces
core/views.py - REST API views → User and usage data: reads and writes
core/views.py - Face detection → Recognition response: produces
- REST API views → Stripe: manages subscription
core/views.py - Billing pages → REST API views: requests billing
src/containers/Account/Billing.js - Billing pages → Subscription form: renders
src/containers/Account/Billing.js - Account settings → REST API views: updates account
src/containers/Account/ChangeEmail.js - API key page → REST API views: fetches key
src/containers/Account/APIKey.js