php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Add prerequisites to examples

Open scriptPilot opened this issue 2 years ago • 3 comments

As a proposal, it would be helpful to have the prerequisites (DB schema etc.) somewhere at the top as a comment. Now, by reading the code and try and error I can reproduce it but it can be improved:

Example

https://github.com/mevdschee/php-crud-api/blob/main/examples/clients/upload/vanilla.html

scriptPilot avatar Oct 15 '23 14:10 scriptPilot

@mevdschee - if you think it is helpful, you can share this minimal JS Wrapper I have created for your incredible API :-)

https://github.com/scriptPilot/js-php-mysql-crud-api

scriptPilot avatar Oct 16 '23 14:10 scriptPilot

DB schema

You can use any of the schemas provided in the tests/fixtures, see:

https://github.com/mevdschee/php-crud-api/tree/main/tests/fixtures

mevdschee avatar Oct 17 '23 05:10 mevdschee

Cool - so it would be helpful to have a note in the script to these schema / tables which are required :-)

scriptPilot avatar Oct 17 '23 06:10 scriptPilot