EVO: README > create databases prefers to use uft8

pull/1/head
Thomas Metois 2017-03-01 10:59:39 +01:00
parent 754e319f3f
commit 591ea8b5a8
1 changed files with 26 additions and 26 deletions

View File

@ -14,10 +14,10 @@ PHP & MySQL
----------- -----------
Install PHP (version 7.0 recommended) with Apache (or Nginx) with extensions : xml, mbstring, mysql, zip, unzip, mcrypt, intl, imagick (extension php) Install PHP (version 7.0 recommended) with Apache (or Nginx) with extensions : xml, mbstring, mysql, zip, unzip, mcrypt, intl, imagick (extension php)
For Apache add mods : rewrite, ssl (a2enmod) For Apache add mods : rewrite, ssl (a2enmod)
Install MySQL (version 5.7 recommended) or MariaDb equivalent Install MySQL (version 5.7 recommended) or MariaDb equivalent
Using Composer (recommended) Using Composer (recommended)
---------------------------- ----------------------------
@ -25,7 +25,7 @@ Alternately, clone the repository and manually invoke `composer` using the shipp
`composer.phar`: `composer.phar`:
cd my/project/dir cd my/project/dir
git clone ssh://github.com/CASES-LU/MonarcAppBO.git ./monarc git clone ssh://github.com/CASES-LU/MonarcAppBO.git ./monarc
cd monarc cd monarc
php composer.phar self-update php composer.phar self-update
php composer.phar install -o (modifier le package.json deux errreurs passer en dev-beta le core et il y a un / en trop pour zm-core) php composer.phar install -o (modifier le package.json deux errreurs passer en dev-beta le core et il y a un / en trop pour zm-core)
@ -37,16 +37,16 @@ available.)
Databases Databases
--------- ---------
Create 2 databases: Create 2 databases:
CREATE DATABASE monarc_master DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE monarc_master;
CREATE DATABASE monarc_common;
Change Sql Mode in my.cnf: Change Sql Mode in my.cnf:
sql-mode = MYSQL40 sql-mode = MYSQL40
There is 2 databases: There is 2 databases:
* monarc_common contain models and data create by smile. * monarc_common contain models and data create by smile.
* monarc_master contain all user and authentication information * monarc_master contain all user and authentication information
@ -60,7 +60,7 @@ The project is splited on 2 parts :
The Api is not direct modules of the project but libraries. The Api is not direct modules of the project but libraries.
You must create modules with symbolics link to libraries You must create modules with symbolics link to libraries
Create 2 symbolics links at project root: Create 2 symbolics links at project root:
mkdir module mkdir module
cd module cd module
@ -87,11 +87,11 @@ Repository for angular at project root:
There is 2 parts: There is 2 parts:
* one only for front office (ng_client) * one only for front office (ng_client)
* one common for front office and back office (private project) (ng_anr) * one common for front office and back office (private project) (ng_anr)
It is develop with angular framework version 1 It is develop with angular framework version 1
![Arbo](public/img/arbo3.png "Arbo") ![Arbo](public/img/arbo3.png "Arbo")
Web Server Setup Web Server Setup
---------------- ----------------
@ -151,18 +151,18 @@ Create file `config/autoload/local.php`:
), ),
), ),
); );
Configuration Configuration
------------- -------------
Create file configuration Create file configuration
sudo cp /config/autoload/local.php.dist /config/autoload/local.php sudo cp /config/autoload/local.php.dist /config/autoload/local.php
Update connexion information to local.php and global.php Update connexion information to local.php and global.php
Configuration files are stored in cache. Configuration files are stored in cache.
If yours changes have not been considered, empty cache by deleting file in /data/cache If yours changes have not been considered, empty cache by deleting file in /data/cache
Install Grunt Install Grunt
@ -171,30 +171,30 @@ Install Grunt
sudo apt-get install nodejs sudo apt-get install nodejs
sudo apt-get install npm sudo apt-get install npm
sudo npm install -g grunt-cli sudo npm install -g grunt-cli
Only for linux system: Only for linux system:
sudo ln -s /usr/bin/nodejs /usr/bin/node (seulement linux) sudo ln -s /usr/bin/nodejs /usr/bin/node (seulement linux)
Update project Update project
-------------- --------------
Play script (mandatory from the root of the project)(pull and migrations): Play script (mandatory from the root of the project)(pull and migrations):
sudo /bin/bash ./scripts/update-all.sh sudo /bin/bash ./scripts/update-all.sh
This shell script use others shell script. May be you node to change rights of these others files This shell script use others shell script. May be you node to change rights of these others files
Create Initial User and Client Create Initial User and Client
------------------------------ ------------------------------
Modify email and password (firstname or lastname) of first user in /module/MonarcBO/migrations/seeds/adminUserInit.php Modify email and password (firstname or lastname) of first user in /module/MonarcBO/migrations/seeds/adminUserInit.php
If you have a mail server, you can keep default password and click on "Password forgotten ?" after user creation. If you have a mail server, you can keep default password and click on "Password forgotten ?" after user creation.
Create first user: Create first user:
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcBO/migrations/phinx.php php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcBO/migrations/phinx.php
Data Model Data Model
---------- ----------