Skip to content

A coding challenge I was set by a company (I was offered the job). The challenge was to create a shopping cart in Python Flask. With the time I had, I focussed on core functionality so the code does lack tests currently. I hope to add them in in the future.

Notifications You must be signed in to change notification settings

ha1fling/ShoppingCart

Repository files navigation

ShoppingCart

The purpose of this project is to build a shopping cart with the following functional requirements:

  • Add items
  • Remove items
  • Clear items
  • Calculate totals
  • Print itemised receipt
  • Apply single use discount codes

Setting up the application locally

###Create a virtual environment and itialise it using this tutorial:

https://flask.palletsprojects.com/en/1.1.x/installation/#installation

Within PyCharm on Windows I use:

python -m venv venv

venv\scripts\activate

Install the requirements: (some of the requirements aren't needed- I'll remove them)

python -m pip install -r requirements.txt

Start the flask app

flask run

About

A coding challenge I was set by a company (I was offered the job). The challenge was to create a shopping cart in Python Flask. With the time I had, I focussed on core functionality so the code does lack tests currently. I hope to add them in in the future.

Topics

Resources

Stars

Watchers

Forks