Giter Club home page Giter Club logo

municipal-library's Introduction

06 - Symfony - UI/UX et assets

Base de données

Base de données "Municipal Library"

Éléments pré-installés

  • Toutes les entités ont déjà été créées via la commande m̀ake:entity
  • L'intégralité des opérations universelles (CRUD) a également été générée pour chaque entité via la commande m̀ake:crud

Installation du projet

1 - Récupération du projet

Dans un terminal :

git clone --branch full_no_assets [email protected]:El-Profesor/Municipal-Library.git <nom_de_dossier>

Note : <nom_de_dossier> doit être remplacé par le nom choisi (ex. : municipal_library).

2 - Installation des dépendances

Dans un terminal, depuis le dossier <nom_de_dossier> :

composer install

Note : si besoin, choisir les options proposées par défaut.

3 - Configuration de l'environnement

  • Faire une copie du fichier .env en le nommant .env.local
  • Configurer dans le fichier .env.local les paramètres de connexion à la base de données en prenant soin de vérifier au préalable le type de serveur de votre environnement (MySQL ou MariaDB)

Note : pour des questions de cohérence, il est souhaitable de nommer la base de données municipal_library.

4 - Création de la base de données

Dans un terminal :

php bin/console doctrine:database:drop --force --if-exists
php bin/console doctrine:database:create
php bin/console doctrine:schema:create 

5 - Insertion d'un jeu de données en base de données

Dans un terminal :

php bin/console doctrine:fixtures:load

6 - Vérification du bon fonctionnement de l'application

Dans un terminal :

symfony server:start

Dans un navigateur, consulter l'URL : http://localhost:8000/book/.

municipal-library's People

Contributors

el-profesor avatar

Watchers

 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.