Skip to content

Point of sales application developed in Django and REST framework with CI/CD pipelines with GitHub actions

Notifications You must be signed in to change notification settings

santiagortiiz/Point-of-sale-Python-Django-CICD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Point of Sale

Basic Django project that uses Django Rest Framework to provide a RESTful API for a point of sale that let's you track the inventory of products and the orders done.

/api/products/

  • List all existing products
  • Create a new product
  • Retrieve an existing product
  • Update an existing product

Note that deleting a product is not allowed.

A product allows you to save:

  • The description of the product
  • The unit price of the product in cents
  • The available stock of the product

/api/orders/

  • List all existing orders
  • Create a new order
  • Retrieve an existing order

Note that updating or deleting a product is not allowed.

A order allows you to save/calculate:

  • The list of items that were purchased
  • The quantity of each item
  • The total amount earned by the order in cents

Note that when a order is created, the corresponding products' stock must be updated.

Testing

Run tests with python src/manage.py test src

About

Point of sales application developed in Django and REST framework with CI/CD pipelines with GitHub actions

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published