Coder Social home page Coder Social logo

bile-mo's Introduction

Installation du projet

Copie du projet en local

  1. Cliquez sur le bouton "code", puis sur la section HTTPS qui affiche l'url suivante :

            https://github.com/belarif/bile-mo.git 

copiez cette url à utiliser pour installer le projet en local.

  1. Ouvrez le terminal de votre IDE. Si vous utilisez le server WampServer64, positionnez vous sur le chemin c:/wamp64/www comme suit :

            cd c:/wamp64/www

si vous utilisez un server autre que WampServer64, positionnez vous sur le chemin qui permettra l'exécution de l'API.

  1. Sur le même chemin, tapez la commande suivante pour cloner le projet :

            git clone https://github.com/belarif/bile-mo.git

Après exécution de la commande, le projet sera copié dans le répertoire www

Installation des dépendances

            composer install

Génération de SSL keys privé et public pour JWT

            php bin/console lexik:jwt:generate-keypair

Création de la base de données

  1. Créer votre base de données en local
  2. Modifier le fichier .env pour adapater les accès à votre SGBD
  3. Créer le schéma de votre base de données:

            php bin/console doctrine:migrations:migrate

Chargement des fixtures

            php bin/console doctrine:fixtures:load

Lancement de l'API

            php -S localhost:8000 -t public/

Génération du token depuis Postman :

            - username : [email protected]
            - password : admin1

Lancement de la documentation de l'API

  1. génération du fichier swagger.json

            ./vendor/bin/openapi --format json --output ./public/swagger/swagger.json ./src/swagger/swagger.php src
  1. consultation de la documentation

            http://localhost:8000/swagger/index.html#/

bile-mo's People

Contributors

belarif avatar

Watchers

 avatar

bile-mo's Issues

BM2: implementation of create product functionality

  • Creating ProductController that manage products
  • Creating createProduct() function
  • Creating ProductEntity and all entities related to this
  • Creating ProductRepository
  • ProductManagement service
  • Installing serializer component of symfony
  • Creating Fixtures(User,Brand,Color,Memory and Country) in order to test

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.