Giter Site home page Giter Site logo

palette-portal-api's Introduction

Practicing building an E-commerce Platform API on Django REST Framework

Key Areas Explored:

Requests/Parsers

  • Handling requests containing serialized data and media files e.g. using JSON/MultiPartParser.

Models/Admin/Serializers

  • Implementing custom object managers, extending object-model methods.
  • Registering/customizing models on the admin interface, automatically populating slug fields based on corresponding name fields.
  • Serializing/Deserializing objects, handling many-to-many-field in creation and updates.

Caching/Sessions

  • Implementing and handling per-view caching on object retrieval, updates, and deletion.
  • Setting up appropriate session storage, CRUD operations on request session data (cart data and refresh tokens are currently stored in session).

Versioning

  • Properly leveraging app names and namespaces for Namespace versioning.

Media Handling

  • Configuration for media uploads in settings.
  • Setting up cloudinary for image uploads and handling related operations e.g. image deletion from database.

Custom exception handling

  • Understanding and extending rest_framework's exception handlers to customize error responses.

Testing

  • Understanding and implementing tests using django/drf test suite to ensure endpoints work as intended.

Custom Middleware/Context processors

  • Understanding and customizing django's middleware/context processors to handle manually blacklisted simple_JWT access tokens/set necessary environmental checks.

Token/Stateless Authentication

  • Understanding the usage of Knox and simple_jwt for user authentication and customizing them as needed.

Real-time Messaging

  • Understanding the use of django channels with websockets, and implementing a functional real-time chat between authenticated parties.
  • Adding functionality for message replies, online/offline/typing status updates.

Setup containerization with docker

palette-portal-api's People

Contributors

iamprecieee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.