Start adventure with React


First, we have to check our environment has node, npm and create-react-app tools available.

node -v

in command prompt/terminal to check node is available. If not available grab it from Just need to install it. Nothing else.
Then, check npm is available with

npm -v

If it is not latest (5.2+) or broken type

[sudo] npm install npm -g

Hit enter and check npm available.
To install create react app type

[sudo] npm install -g create-react-app

All prerequisite installed.
Then, go to the desired directory in terminal and type

npx create-react-app new-react

Change directory to this new-app. Lastly, start this brand new react application with

cd new-app && npm start

Amazing travel with WP-CLI

WP-CLI is a great tools for develop and manage WordPress site without hassle.

Install WP-CLI

Before drive a bus, first need driving license. So, to use WP-CLI, install it in computer. I am using it on Ubuntu 16.04 operating system. LAMP stack and default terminal will fit for this. Open old, fat, big, black TERMINAL. If computer has already CURL installed, then type

$ curl -O

Otherwise, get this phar file with wget command, which is native. Type

$ wget

Anyway, I get wp-cli.phar file. This, PHAR file will executable with chmod +x command. So, this command will be
$ chmod +x wp-cli.phar
then, move wp-cli.phar file to /usr/local/bin/wp directory, used this command
$ sudo mv wp-cli.phar /usr/local/bin/wp
I have WP-CLI. To check, command with $ wp --info, and it will show the whole bunch of information about WP-CLI.

So, Concluding in installation step, 4 commands require to install WP-CLI (with checking command)
Command 1: $ wget
Command 2: $ chmod +x wp-cli.phar
Command 3: $ sudo mv wp-cli.phar /usr/local/bin/wp
Additional Command 4: $ wp --info

For windows, here is the instruction.

Install WordPress

Step 1: Open target directory in terminal. To download latest copy of WordPress, type command
$ wp core download
Here are options if we need to select where will it install, which version will install and 3 other options.
Step 2: After download core files of WordPress, we need to configure it. Need to create wp-config.php with our new database name, user and password.

$ wp config create --dbname=wpcli --dbuser=root --dbpass=root

Step 3: We need to create new database wpcli.

$ wp db create

Step 4: Install WordPress

$ wp core install --url=localhost/wpcli --title="WP-CLI" --admin_user=admin --admin_password=12345

Next we will see how to

  • Manage WordPress ecosystem
  • Backup WordPress Database
  • Plugin scaffolding
  • Theme scaffolding