Skip to content

tirenucci/k-k-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crea Learning est un outil auteur.

Outils

Prérequis

  • Docker
  • Docker-Compose
  • Node.js 14

Installation

  1. Cloner le projet: git clone https://gitlab.com/logipro/devteam/crealearningdockeriser.git

  2. Accéder au dossier du projet via le terminal: cd crealearningdockeriser/

  3. Accéder au dossier du projet via le terminal: git checkout "develop"

  4. Lancer la commande: docker-compose up -d

Installer l'Api + Front avec Npm au sein du docker :

  1. Se connecter au Docker: docker exec -it crea-php /bin/bash

  2. Allez dans le dossier : cd crealearning-api

  3. Ajouter le Env Local dans le projet : nano .env.local avec ces infos :

` ###> symfony/framework-bundle ### APP_ENV=dev APP_SECRET=6b8e6ff0e5121f99a844cb8e95390870 #TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 #TRUSTED_HOSTS='^(localhost|example.com)$' ###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# For a PostgreSQL database, use: "postgresql://db_user:[email protected]:5432/db_name?serverVersion=11&charset=utf8"
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
DATABASE_URL=mysql://root:logipro@mysql/crea-learning
###< doctrine/doctrine-bundle ###

###> symfony/mailer ###
[email protected]
MAILER_DSN=smtp://noreply%40logipro.com:[email protected]:587
###< symfony/mailer ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=*
###< nelmio/cors-bundle ###

ROOT_PATH=/var/www/html/crealearning/public
ASSETS_PATH=/var/www/html/crealearning/public/assets/clients/
ASSETS_URL=/assets/clients/
UPLOAD_PATH=/home/docker/clients/uploads/librairies
UPLOAD_URL=/assets/upload/
TMP_TRAINING_PATH=/var/www/html/crealearning-api/var/training/
BACK_ORIGIN_URL=http://localhost/crea/
BACK_LIB_URL=http://localhost/lib/
FREE_LIB_PATH=/var/www/html/crealearning/public/assets/img/freeLibrairie/
FRONT_URL=http://localhost:3000

HASH_KEY=Sok{2wPFvEp0A0PJJAw04Nm]pBZOJPaQ

`

  1. Ensuite cd .. on est dans le répertoire /crealearningdockeriser

  2. Run le Script d'installation : ./bin/setup.sh

  3. Une fois le script terminer, sortir du docker et allez dans crealearningdockeriser/crealearning

Éxecution de React :

  1. Lancer la commande npm start

Reconstruction de la Base de donnée en cas de nécessité :

  1. Run le Script : ./bin/rebuild_db.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published