Developer : Khairi Brahmi
Phone : +21622449506
A supermarket checkout management solution. **Features and specifications The product catalog must contain:
- The list of products with their price (ex: tomato 1 €, bread 1 €, cheese 3 €)
- Type discounts: 2 products purchased = 1 free 50% reduction on such product This solution should make it possible to:
- Create a shopping cart
- Add products
- Calculate the sum and display the ticket
The steps below will get you up and running with a local development environment. All of these commands assume you are in the root of your project.
- Docker
- Docker Compose
This can take a while, especially the first time you run this particular command on your development system::
$ docker-compose -f docker-compose.yml build
As with any shell command that we wish to run in our container, this is done using the docker-compose -f docker-compose.yml run --rm
command:
$ docker-compose -f docker-compose.yml run --rm web-django python manage.py migrate
$ docker-compose -f docker-compose.yml run --rm web-django python manage.py createsuperuser
$ docker-compose -f docker-compose.yml run --rm web-django python manage.py makemigrations
Here, web-django
is the target service we are executing the commands against.
$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)
$ docker system prune
$ docker system prune --volumes
In the project directory access the "frontend" folder :
Then you can run:
Then :
Open http://localhost:3000 to view it in the browser.