How danipineiro/fullstack-django-angular works
This is a Django REST and Angular starter template. The main workflow is a user entering the SPA, navigating to registration or login, and having the frontend call authentication endpoints; the backend validates credentials or Google identity and issues JWTs for frontend session management and protected routes. The repository also documents email confirmation, password recovery, profile access, PostgreSQL persistence, and Celery/Redis background tasks. Some backend routes and task behavior are unsampled, so those relationships are shown only where documented or marked unverified.
Main entry points: auth.service.ts Auth service · views.py Google login · urls.py Django REST API · app.routes.ts Route configuration
Components 21
Angular application
- SPA bootstrap
frontend/src/main.ts - Application shell
frontend/src/app/app.component.ts - Route configuration
frontend/src/app/app.routes.ts - Auth routes
frontend/src/app/auth/routes.ts - Auth screens
frontend/src/app/auth/signup/signup.component.ts - Auth service
frontend/src/app/auth/auth.service.ts - Route guards
frontend/src/app/core/guards/is-logged.guard.ts - JWT interceptor
frontend/src/app/core/interceptors/auth.interceptor.ts - Current user
frontend/src/app/user/user.service.ts
Django backend
- Django REST API
backend/config/urls.py - Auth endpoints
backend/auth/urls.py - Google login
backend/auth/views.py - Password reset
backend/auth/serializers.py - Auth and DB config
backend/config/settings/base.py - User accounts
backend/user/models.py - Background tasks
backend/user/tasks.py
Runtime services
- PostgreSQL
- Redis broker
- Google identity
- Email delivery
Other components
- User
Connections 22
- User → SPA bootstrap: opens
README.md - SPA bootstrap → Application shell: bootstraps
frontend/src/main.ts - Application shell → Route configuration: hosts routes
- Route configuration → Auth routes: routes to
frontend/src/app/app.routes.ts - Auth routes → Auth screens: selects screen
frontend/src/app/auth/routes.ts - Auth screens → Auth service: submits to
- Auth service → Django REST API: calls auth API
- Django REST API → Auth endpoints: routes requests
- Auth endpoints → Google login: dispatches
backend/auth/urls.py - Google login → Google identity: verifies token
backend/auth/views.py - Google login → User accounts: updates account
backend/auth/views.py - Google login → User: returns JWTs
backend/auth/views.py - Auth endpoints → Password reset: dispatches reset
- Password reset → Email delivery: sends reset email
backend/auth/serializers.py - Auth and DB config → PostgreSQL: configures database
backend/config/settings/base.py - Auth and DB config → Redis broker: configures broker
backend/config/settings/base.py - Background tasks → Redis broker: queues work
- Auth service → Route guards: provides login state
- Route configuration → Route guards: checks access
frontend/src/app/app.routes.ts - Auth service → JWT interceptor: supplies token
- JWT interceptor → Django REST API: adds auth header
- Current user → Django REST API: requests profile