-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
42 lines (22 loc) · 781 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
== Install project ==
1. Install libs
> composer update
2. Run tests
> php vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/
3. Run project
> cd public/
> php -S localhost:8000
4. Open 'http://localhost:8000' on your web browser
== Development level ==
1. Create propel schema.yml
> php vendor/bin/propel database:reverse --output-dir etc 'mysql:host=<HOST>;dbname=<DBNAME>;user=<USER>;password=<PASS>'
2. Add model namespase if need
Open schema.yml config and add namespace="<NAMESPACE>" attribute to the database tag
3. Build model
> php vendor/bin/propel model:build --input-dir ./etc --output-dir ./app/lib -vv
4. Add model libs to composer's autoload
> vim composer.json
>
> + "autoload": {
> + "classmap": ["app/lib/Engine"]
> + }