MacOS Mojave Nginx

Run ‘brew doctor’. BUT I GOT SOME WARNINGS:

SOLVE THE WARNINGS

MODIFY nginx CONFIG IN /usr/local/etc/nginx/nginx.conf:

HERE IS THE CONTENT

RESTART nginx SERVICE

CHECK THE CONFIG. BUT I GOT SOME ERROR AND MANAGE TO SOLVE IT

 

Install Akeneo 3.1 Community Ed.

Ref: https://docs.akeneo.com/2.0/install_pim/installation_ce_archive.html
Download from https://www.akeneo.com/download/
Extract the files (composer.phar is included) in root web/akeneo31
Go to the dir

and run TO INSTALL DEPENDENCIES

Then install with ‘yarn’
NOTE:BUT MAKE SURE node version > 8.10.0

THEN INSTALL FRONTEND. CLEAR CACHE BUT GOT THIS:

SOLUTION:
READ: https://stackoverflow.com/questions/36129259/php7-with-apcu-call-to-undefined-function-apc-fetch
SO INSTALL php-apcu

THEN ENABLE THE EXTENSION. IF YOU CAN’T FIND THE APCU SETTING, PLS DO

SO ‘apc.enable_cli’ IS OFF. SO MODIFIED THE INI FILE

THEN ADD ONE LINE:

SAVE THEN RESTART THE SERVICES

CHECK AGAIN

THEN RUN AGAIN:

THEN CONTINUE TO RUN ‘php bin/console pim:installer:assets –symlink –clean –env=prod’

THEN THE INSTALLATION. BUT I GOT AN ERROR

SOLUTION:
READ https://docs.akeneo.com/2.0/install_pim/system_requirements/system_install_ubuntu_1604.html
Creating a MySQL database and a user for the application

THEN RUN AGAIN. BUT GOT ANOTHER ERROR:

SOLUTION:
INSTALL ELASTIC SEARCH FROM https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html#deb-key

START ELASTICSEARCH SERVICE

CHECK ON THE BROWSER: http://localhost:9200/
SHOULD SHOW

THEN RUN AGAIN. BUT GOT ANOTHER ERROR:

SETUP NGINX CONF

CONTENT

THEN

Then

Then

Then

 

 

Magento 2 – Create Module API

CREATE A MODULE TO USE API TO PULL PRODUCTS DATA FROM SINOGOODIES (SG) WEBSITE
I PUT THE CODE IN app/code/advcha/SGApi DIRECTORY
Create registration.php

Create etc/module.xml

ENABLE THE MODULE

Create etc/webapi.xml

Create the API interface Api/SGInterface.php

Create a dependency injection di.xml for the SGInterface to the implementation in Model directory.
etc/di.xml

Create the implementation in Model/SG.php (FOR EXAMPLE)

SETUP UPGRADE AND COMPILE DI

TEST THE API CALL: http://ayoimport-dev.test/rest/V1/sgapi/getproduct
THE CORRECT RESPONSE WILL BE LIKE THIS:

 

Install Kubernetes On Ubuntu 16.04

ref: https://matthewpalmer.net/kubernetes-app-developer/articles/install-kubernetes-ubuntu-tutorial.html

NOTE: Make sure ‘virtualbox’ already installed!!!
Install kubectl

Install minikube (the newest 1.2.0) –> replace below ‘v0.28.2’ with ‘v1.2.0’!

We’re Done!
Now start up Minikube and use kubectl to find what version of Kubernetes you’re running on Ubuntu.
Minikube is a Kubernetes-specific package that runs a local development Kubernetes cluster on VirtualBox.
kubectl is the command line tool that lets you interact with your Minikube Kubernetes cluster.