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
- Host: GitHub
- URL: https://github.com/omarmakled/cakephp2
- Owner: OmarMakled
- Created: 2023-11-06T17:53:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-06T21:22:53.000Z (over 2 years ago)
- Last Synced: 2025-02-26T12:14:47.290Z (about 1 year ago)
- Topics: cakephp2, docker, docker-compose, mysql, nginx, php7, vue3, vutify
- Language: PHP
- Homepage:
- Size: 2.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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`