Crea Learning est un outil auteur.
- Docker
- Docker-Compose
- Node.js 14
-
Cloner le projet:
git clone https://gitlab.com/logipro/devteam/crealearningdockeriser.git
-
Accéder au dossier du projet via le terminal:
cd crealearningdockeriser/
-
Accéder au dossier du projet via le terminal:
git checkout "develop"
-
Lancer la commande:
docker-compose up -d
-
Se connecter au Docker:
docker exec -it crea-php /bin/bash
-
Allez dans le dossier :
cd crealearning-api
-
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
`
-
Ensuite
cd ..
on est dans le répertoire/crealearningdockeriser
-
Run le Script d'installation :
./bin/setup.sh
-
Une fois le script terminer, sortir du docker et allez dans
crealearningdockeriser/crealearning
- Lancer la commande
npm start
- Run le Script :
./bin/rebuild_db.sh