Git Product home page Git Product logo

gestion-inventaire's Introduction

Prérequis

Installation

  1. Cloner le projet : git clone https://gitlab.com/belhadjgi/gestion-de-stock.git
  2. Ignore les changements de permission : git config --global core.fileMode false
  3. Force le lf quand git pull sur windows: git config --global core.eol lf git config --global core.autocrlf input
  4. Installation des dépendances : composer install
  5. L'importde la base de donnée de recette: vendor/bin/drush sql-cli < database.sql
  6. Vidage du cache Drupal: vendor/bin/drush cr

Développement Front

Nous utilisons GULP afin de gérer nos fichiers HTML / CSS / JS

  1. Il faut installer NODEJS dans sa dernière version LTS (https://nodejs.org/en/download/)
  2. Il faut installer le projet gulp
    • SE positionner dans le répertoire web/themes/custom/sqli_inventaire/assets
    • Lancer la commande "npm install"
  3. Utilisation de gulp
    • serveur: En lancant la commande "npm start". Un serveur sera lancé en local avec Browser-sync et toutes les modifications de css / js seront visisble automatiquement.
    • build: En lancant la commande "npm run build" les fichiers css / js seront minifiés et aggrégés dans Drupal
  4. Fichiers:
    • Les fichiers SCSS se trouvent dans le répertoire "web/themes/custom/sqli_inventaire/assets/scss"
    • Les fichiers javascripts se trouvent dans le répertoire "web/themes/custom/sqli_inventaire/assets/js"

Développement Drupal

L'utilisation de Drush pour Drupal est obligatoire.

  1. Pour vider le cache: vendor/bin/drush cr

  2. Se connecter à la base de données: vendor/bin/drush sqlc

  3. Importer un DUMP de base de données: vendor/bin/drush sql-cli < /chemin-vers-le-dump.sql

  4. Gestion des configurations

  • Lors de la modification des configurations dans le backoffice de Drupal il faut exporter la configuraitons avec la commande: vendor/bin/drush cex

  • Ensuite il faut tester que nos fichiers contiennent bien la bonne configuration avec l'import: vendor/bin/drush cim (import complet)

gestion-inventaire's People

Watchers

James Cloos 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.