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

https://github.com/training-exercises-dtsmart/1_ngochuy

Training Exercise Practice Daily
https://github.com/training-exercises-dtsmart/1_ngochuy

api-rest php yii2-framework

Last synced: about 1 month ago
JSON representation

Training Exercise Practice Daily

Awesome Lists containing this project

README

        

#

API link

![tải xuống](https://github.com/user-attachments/assets/4c06ad3b-0105-4847-a3d3-9ea8e867d135)

https://documenter.getpostman.com/view/30812144/2sA3kXG25H

# Create Yii2 Cronjob

+ Set cronjob to send email at 9:00am every morning from M -> F

Ảnh màn hình 2024-08-03 lúc 18 54 16

+ File with name "cront" will be create in project :

Ảnh màn hình 2024-08-03 lúc 19 08 44

+ Run crontab from command :

Ảnh màn hình 2024-08-03 lúc 18 54 29


# Config Redis & Yii2

Ảnh màn hình 2024-07-25 lúc 17 12 33

+ Config Redis :

Ảnh màn hình 2024-07-25 lúc 17 11 00

+ Defined get cache :

Ảnh màn hình 2024-07-25 lúc 17 09 37

+ Login Redis cli to get keys:

Ảnh màn hình 2024-07-25 lúc 17 09 28

** Download Postman Collection Json :

[Yii2.postman_collection.json.zip](https://github.com/user-attachments/files/16374029/Yii2.postman_collection.json.zip)

# Weekly Action :

Ảnh màn hình 2024-07-19 lúc 14 17 57*** Day 2:

- Schema database :

** File Detail For Database Schema :

+++ ( Click To More Detail ) [orders.pdf](https://github.com/user-attachments/files/16345792/orders.pdf)


Ảnh màn hình 2024-07-23 lúc 15 25 44

- Migrations:


Ảnh màn hình 2024-07-02 lúc 17 13 28

--------------------------------------

*** Day 3:

- Create CRUD for Products

Ảnh màn hình 2024-07-03 lúc 17 33 25

Ảnh màn hình 2024-07-03 lúc 17 33 37

--------------------------------------

*** Day 4:

- Create Filter & Search Function

Ảnh màn hình 2024-07-04 lúc 17 38 29

- Pagination with Serilizer

Ảnh màn hình 2024-07-04 lúc 17 37 23

--------------------------------------

*** Day 5:

- Define Module Product :

Ảnh màn hình 2024-07-05 lúc 22 31 36

- Create method function in product controller of module :

Ảnh màn hình 2024-07-05 lúc 22 36 03

--------------------------------------

*** Day 6:

- Refactoring APIs, format json response, migrations for table :

Ảnh màn hình 2024-07-09 lúc 17 12 13

- Htpp Method via PostMan including User,Product,Post:

Ảnh màn hình 2024-07-09 lúc 16 19 29

--------------------------------------

*** Week 3:

- Crete Docker and Setup Nginx and run nginx inside docker :

![1_MLFxdoY6ImiTghX9l0lDTA](https://github.com/user-attachments/assets/165ef825-374e-40b7-ba33-070fd5856692) | ![images](https://github.com/user-attachments/assets/0ca58288-ace0-4242-a5ba-d45e85c2303d)


Ảnh màn hình 2024-07-17 lúc 16 39 26


Ảnh màn hình 2024-07-17 lúc 17 09 15

Ảnh màn hình 2024-07-17 lúc 17 25 58

Ảnh màn hình 2024-07-17 lúc 17 26 09

- Write APIs Comment Product:

* Get Comemnt:

Ảnh màn hình 2024-07-19 lúc 11 52 48

* Creeate Comment:

Ảnh màn hình 2024-07-19 lúc 11 52 34

* Update Comment:

Ảnh màn hình 2024-07-19 lúc 11 52 59

* Reply Comment:

Ảnh màn hình 2024-07-19 lúc 14 17 57

* Delete Comment:

Ảnh màn hình 2024-07-19 lúc 11 53 18

** Send email to customer when they checkout order

Ảnh màn hình 2024-07-19 lúc 16 20 27

+ Check email order :

Ảnh màn hình 2024-07-19 lúc 16 20 10

--------------------------------------

*** Week 4 :

+ Create more table, databases for ecommerce apis :

Ảnh màn hình 2024-07-22 lúc 16 34 35

Ảnh màn hình 2024-07-22 lúc 16 34 50

+ Run Codeceptiomn Unit Test :

Ảnh màn hình 2024-07-23 lúc 14 50 30

## Create CI/CD Check CodeCeption Unit Test on Github Action :

Ảnh màn hình 2024-07-23 lúc 14 48 02

Ảnh màn hình 2024-07-23 lúc 14 54 55

--------------------------------------

### API Testing

+ User API

Ảnh màn hình 2024-08-01 lúc 15 59 16

+ Product API

Ảnh màn hình 2024-08-01 lúc 16 36 53

--------------------------------------

### Email Logging

Ảnh màn hình 2024-08-02 lúc 16 36 49