GitHub TeamDukaan - Backend Assignment
GitHub TeamDukaan - Backend Assignment
A typical seller installs the Dukaan app, Signs up using his mobile number and creates his store. He
can then start uploading inventory (as products) to his store. Once the store is created, he can share
the store link with his/her customers on social media and starts accepting online orders.
Your assignment is to Design a very basic API (Django DRF) & database (any SQL db works)
structure which supports above work-flow.
i. Take product name, description, MRP, Sale price, image & category as input.
ii. Create a category if it doesn't exist.
iii. Create product
iv. Respond back with id, name and image.
i. Create a customer table with a mobile number as unique and address details.
ii. Create a order table to store orders data.
iii. When someone places an order from the buyer side, the records will be saved here.
https://github.com/TeamDukaan/backend-assignment 1/2
02/02/2024, 23:38 GitHub - TeamDukaan/backend-assignment
i. Identity customer using JWT or token which can be generated using his mobile number
and a OTP
ii. Bypass the actual OTP validation flow and issue a token on any random number & OTP
combination
iii. Create a customer record if didn’t already exist for that mobile number.
iv. Take the cart object as input and convert that into an order.
v. Create an order for that store & customer and return back the order id.
https://github.com/TeamDukaan/backend-assignment 2/2