damijanc/rest-client-demo

1.0 2017-01-06 15:51 UTC

This package is auto-updated.

Last update: 2024-04-10 04:02:37 UTC


README

![Travis status] (https://travis-ci.org/damijanc/rest-client-demo.svg?branch=master)

simple-rest

Example rest service using Symfony 3, Doctrine and MariaDB

Installation:

  • Run in project root composer install
  • Setup database mysql -u root < ./Model/generation.sql

How to run

  • You can run the server with builtin php server just by running php bin/console server:run

Tests

To run tests run ./vendor/bin/phpunit in project root

Mock api runner

  • 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.