page:blueprints:logistics operators:vendor portal:django

Logistics operators: vendor portal using Django

Summary

A vendor portal blueprint for logistics operators built with Django on Ample. Domain schema includes:

Public Information

Technical Basis

Verified on Django: a role-to-document access model with negative tests (401 without identity, 403 for the wrong role) and a private-bucket round-trip for the allowed role (private=ok).

Resource Requirements

Infrastructure Requirements

  1. Compute: Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request; sizes are the priced VM sizes.
  2. Postgres: Managed PostgreSQL 16 runs in its own microVM and is auto-provisioned when an app needs a database and no DATABASE_URL is supplied.
  3. S3-compatible object storage: Buckets are S3-compatible with issued credentials.

Prerequisites

Workflow Steps

  1. Model the logistics operators domain: Create tables for service_products, capacity_movements, shipments, shipment_lines, document_access.
  2. Model vendors: Scoped to the agency with roles.
  3. Authorize document access: By vendor and role (401, 403 negative tests).
  4. Store vendor documents: In the private bucket.
  5. Deploy and verify: Run the synchronous deploy once and read the result.

Limitations

Cost Estimate

Success Checks

  1. App responds on its public URL.
  2. Private-document-library self-test from the example.

Evidence Summary