Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tellys/docker-yii2-api-rest-token-bearer-crud

Docker to create the execution environment and the template has the following technologies: Apache Http Server Mysql database PHP language (Yii PHP Framework - version Yii2) RESTful APIs usando a performance CRUD com operadores usando os métodos HTTP: POST, GET, PUT, and DELETE.
https://github.com/tellys/docker-yii2-api-rest-token-bearer-crud

api api-rest crud crud-api docker mysql php postman postman-api postman-collection yii2

Last synced: about 1 month ago
JSON representation

Docker to create the execution environment and the template has the following technologies: Apache Http Server Mysql database PHP language (Yii PHP Framework - version Yii2) RESTful APIs usando a performance CRUD com operadores usando os métodos HTTP: POST, GET, PUT, and DELETE.

Awesome Lists containing this project

README

        




Docker Yii2 API Rest, Token Bearer, CRUD



The application uses Docker to create the execution environment and the template has the following technologies:
- Apache Http Server
- Mysql database
- PHP language (Yii PHP Framework - version Yii2)

RESTful APIs usando a performance CRUD com operadores usando os métodos HTTP: POST, GET, PUT, and DELETE.

INSTALLATION
------------

### Install

Following command:

~~~
git clone https://github.com/Tellys/Docker-Yii2-API-Rest-Token-Bearer-CRUD
~~~

Enter into folder

~~~
cd Docker-Yii2-API-Rest-Token-Bearer-CRUD
~~~

Docker command

~~~
docker compose pull && docker compose build && docker compose up -d
~~~

Set permissions folders

~~~
docker exec -it php_apache bash

chmod 777 assets
chmod 777 web/assets
chmod 777 runtime
~~~

Install packages compose

~~~
composer install
~~~

Install DB migrations

~~~
php yii migrate/up
~~~

## How to use

#### API
~~~
http://localhost:8000/
~~~

#### PhpMYAdmin
~~~
http://localhost:8081/
~~~

#### Adminer
~~~
http://localhost:8082/
~~~

## Postman Collections API end points

All system **urls end points** and their variables are already formatted in our public **Postman** collection, at the link below
~~~
https://www.postman.com/restless-shuttle-935092/workspace/yii2-api-rest-token-bearer-crud/collection/20718206-d82b9fd0-1cc7-4fe5-94f2-c80cf9c82464?action=share&creator=20718206
~~~

## Maintainer
~~~
Tellys Castro
https://github.com/Tellys
~~~