Git Product home page Git Product logo

bedy's Introduction

  • Pensez à configurer la base de donnée.

  • j'ai mis les sessions en BDD.

     --
     -- Structure de la table `session`
     --
    
     CREATE TABLE IF NOT EXISTS `session` (
       `session_id` varchar(255) NOT NULL,
       `session_value` text NOT NULL,
       `session_time` int(11) NOT NULL,
       PRIMARY KEY (`session_id`)
     ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    

pour l'installation pensez à créer le schéma :

php app/console doctrine:database:create

php app/console doctrine:schema:create

php app/console clear:cache

Au niveau des entités, j'en ai crée 3.

  • 1 - Basket (Le Panier) représenté avec un ID et une SessionID unique.

  • 2 - Product (Les produits) définissant les produits.

  • On peu ajouter des produits via le crud généré dans /product

  • 3 - ProductInBasket (Les produits dans le panier)

  • Il y a du soft delete, c'est à dire que je ne supprime pas les entrées vraiment dans Product et ProductInBasket, cela avoir l'utiliter ensuite de faire des workflow d'ajout au panier et de détecter éventuellement des anomalies.

  • Voila :)

  • Amusez vous bien :).

  • David DJIAN

bedy's People

Contributors

daviddjian avatar

Watchers

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