![Travis status] (https://travis-ci.org/damijanc/rest-client-demo.svg?branch=master)
Example rest service using Symfony 3, Doctrine and MariaDB
- Run in project root
composer install
- Setup database
mysql -u root < ./Model/generation.sql
- You can run the server with builtin php server just by
running
php bin/console server:run
To run tests run ./vendor/bin/phpunit
in project root
- In order to run mock api that you can use to test your you need to have nodejs installed. Then run
npm install
npm run-script run
Your mock api will be accessible on http://127.0.0.1:3030/api/
Check RAML for details.