An open API service indexing awesome lists of open source software.

https://github.com/omarmakled/cakephp2

cakephp2 api small demo
https://github.com/omarmakled/cakephp2

cakephp2 docker docker-compose mysql nginx php7 vue3 vutify

Last synced: about 2 months ago
JSON representation

cakephp2 api small demo

Awesome Lists containing this project

README

          

### Intro
Create a docker container for PHP demos ONLY

### Installation
`docker-compose up --build -d`

### DB

`http://localhost:3000/adminer.php`
`import src/db.sql`

```
docker-compose exec db /bin/sh
mysql -u root -p secret
```

### PHP
```
docker-compose exec php composer install
```

### cakephp
```
composer create-project --prefer-dist cakephp/cakephp=2.x
require cakephp/debug_kit "^2.2.0"
chown -R www-data app/tmp
chmod -R 755 app/tmp
database.php
Config/core.php
app/Config/bootstrap.php CakePlugin::loadAll();
```

### API
GET `http://localhost:3000/api/retailes`