Get PHP dependencies using Composer
composer install
Get javascript dependencies using bower:
bower install
Copy config template files:
cp app/config/parameters.yml.dist app/config/parameters.yml
Now edit app/config/parameters.yml
to your situation
The database schema is defined in app/schema.xml
. You can load this schema in your database
using DBTK Schema Loader (view it's README.md for more information)
Note: Create the database before loading the schema.
vendor/bin/dbtk-schema-loader schema:load app/schema.xml mysql://username:password@localhost/dbname
After initializing the database schema, you can load it with some example data through linkorb/haigha (View Haigha's README.md for further information):
vendor/bin/haigha fixtures:load test/fixture/example-data.yml mysql://username:password@localhost/dbname
php -S 0.0.0.0:8080 -t web/ web/index.php
Now open http://127.0.0.1:8080 in your browser.
See the example json data in Templates. Send it to /api/v1 via POST method, response is json with ID of generated pdf file, you can download file via GET method /api/v1/file/{ID}, response is json with base64encoded content of file.
Don't forget about basic auth in api calls.