EVO: README > create databases prefers to use uft8
parent
754e319f3f
commit
591ea8b5a8
52
README.md
52
README.md
|
@ -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)
|
||||
For Apache add mods : rewrite, ssl (a2enmod)
|
||||
|
||||
|
||||
Install MySQL (version 5.7 recommended) or MariaDb equivalent
|
||||
|
||||
|
||||
|
||||
|
||||
Using Composer (recommended)
|
||||
----------------------------
|
||||
|
||||
|
@ -25,7 +25,7 @@ Alternately, clone the repository and manually invoke `composer` using the shipp
|
|||
`composer.phar`:
|
||||
|
||||
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
|
||||
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)
|
||||
|
@ -37,16 +37,16 @@ available.)
|
|||
|
||||
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:
|
||||
|
||||
sql-mode = MYSQL40
|
||||
|
||||
There is 2 databases:
|
||||
|
||||
There is 2 databases:
|
||||
* monarc_common contain models and data create by smile.
|
||||
* 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.
|
||||
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
|
||||
cd module
|
||||
|
@ -87,11 +87,11 @@ Repository for angular at project root:
|
|||
There is 2 parts:
|
||||
* one only for front office (ng_client)
|
||||
* one common for front office and back office (private project) (ng_anr)
|
||||
|
||||
|
||||
It is develop with angular framework version 1
|
||||
|
||||
|
||||
![Arbo](public/img/arbo3.png "Arbo")
|
||||
|
||||
|
||||
Web Server Setup
|
||||
----------------
|
||||
|
||||
|
@ -151,18 +151,18 @@ Create file `config/autoload/local.php`:
|
|||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
Create file configuration
|
||||
|
||||
sudo cp /config/autoload/local.php.dist /config/autoload/local.php
|
||||
|
||||
Update connexion information to local.php and global.php
|
||||
|
||||
Configuration files are stored in cache.
|
||||
|
||||
Update connexion information to local.php and global.php
|
||||
|
||||
Configuration files are stored in cache.
|
||||
If yours changes have not been considered, empty cache by deleting file in /data/cache
|
||||
|
||||
Install Grunt
|
||||
|
@ -171,30 +171,30 @@ Install Grunt
|
|||
sudo apt-get install nodejs
|
||||
sudo apt-get install npm
|
||||
sudo npm install -g grunt-cli
|
||||
|
||||
|
||||
Only for linux system:
|
||||
|
||||
|
||||
sudo ln -s /usr/bin/nodejs /usr/bin/node (seulement linux)
|
||||
|
||||
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
|
||||
|
||||
|
||||
This shell script use others shell script. May be you node to change rights of these others files
|
||||
|
||||
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.
|
||||
|
||||
Create first user:
|
||||
|
||||
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcBO/migrations/phinx.php
|
||||
|
||||
|
||||
Data Model
|
||||
----------
|
||||
|
||||
|
|
Loading…
Reference in New Issue