Skip to content

khairi-brahmi/GestionCaisse

Repository files navigation

GestionCaisse

Developer : Khairi Brahmi


Phone : +21622449506

Desciption

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

Backend (Dajngo-RF): Getting Up and Running Locally With Docker

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.

Prerequisites

  • Docker
  • Docker Compose

Build the Stack

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 

Run commands

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.

Removing All Unused Objects

$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)
$ docker system prune
$ docker system prune --volumes

Partie Front-end (Reactjs)

In the project directory access the "frontend" folder :

cd /frontend

Then you can run:

npm i

Then :

npm start

Open http://localhost:3000 to view it in the browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published