Skip to main content

A Django app to manage suppliers and consumers in an on-demand marketplace.

Project description

Manage suppliers and consumers in an on-demand marketplace. Think of it like an API to build services like Airbnb, Upwork, or any marketplace where you have suppliers offering a service or product, and consumers searching for specific characteristics of the product or service.

This app provides models and API endpoints to facilitate the implementation of the marketplace.

Full documentation on https://django-on-demand.readthedocs.io/en/latest/

Endpoints

  • /search-suppliers

  • /users/<id>/supplier-profile (create, update, retrieve)

  • /users/<id>/consumer-profile (create, update, retrieve)

  • /newest-suppliers

  • /connection (create a connection between supplier and consumer, update, terminate)

Quick start

1. This app is using django-rest-framework to provide API endpoints, which means this app will need to be added to the list of installed apps. The app will automatically install django-rest-framework if it’s not installed. on_demand also needs to be added to the list of installed apps:

INSTALLED_APPS = [
    ...
    'on_demand',
    'rest_framework'
]

Given that the app has models, a db client should be installed. For example pip install mysqlclient

  1. Include the Django On Demand URLconf in your project urls.py like this:

    path('ondemand/', include('on_demand.urls')),
  2. Run python manage.py migrate to create the models.

  3. Visit http://127.0.0.1:8000/ondemand/ to test the new API.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-on-demand-2.0.0.tar.gz (316.4 kB view details)

Uploaded Source

File details

Details for the file django-on-demand-2.0.0.tar.gz.

File metadata

  • Download URL: django-on-demand-2.0.0.tar.gz
  • Upload date:
  • Size: 316.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for django-on-demand-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8bc78145330d3fed4c651ab7d3f7e518d3768fa795434e40a5ff71901e41ba3c
MD5 77ca9df63bd0a48edfa04ac83d20b0fe
BLAKE2b-256 c9be33c3e91adbcec2923f83f7876c780ea834797ab353040a0c99c996dba4fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page