Giter Site home page Giter Site logo

disecto's Introduction

DISECTO

Admin user credentials

username: admin
password: admin

Users credentials

username: sanin
password: qaz123#QAZ

username: user1
password: qaz123#QAZ

Models used

  1. ItemModel : For product details
  2. CartItem : For each cart-items

APIs Available (Heroku server):

=> GET method for product list https://disectoo.herokuapp.com/store/
=> POST method for admin to create new product https://disectoo.herokuapp.com/store/create-item
=> PUT, DELETE and GET methods for admin to update database https://disectoo.herokuapp.com/store/item/<:slug>
=> GET method for showing cart-items for current user https://disectoo.herokuapp.com/cart/
=> GET, DELETE and PUT methods for updating cart https://disectoo.herokuapp.com/cart/update/<:id>
=> GET method for displaying a pdf invoice of the current cart-items https://disectoo.herokuapp.com/cart/invoice

Cron Job At every 12Am for updating expired produts:

=> GET method for expired product list https://disectoo.herokuapp.com/store/expired-items

Validations

  1. Only admin can create, Update, Delete product
  2. Users can only get update and delete thier own cart-items

Documentations used

  1. Django Rest Framework : https://www.django-rest-framework.org/
  2. Django : https://docs.djangoproject.com/en/4.0/
  3. Cron Job : https://pypi.org/project/python-crontab/
  4. Heroku Hosting : https://www.youtube.com/watch?v=kBwhtEIXGII

disecto's People

Contributors

sanin-mohd avatar

Stargazers

Fawaz avatar sahad 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.