Some Notes about Docker + PHPUnit

This is kinda a confusing subject to learn for me, especially when I am not very familiar with docker yet, nor with PHPUnit. Here is my note as I go a ... ...

Run Docker with Nginx

Docker Useful Commands: docker run --name -d -p : docker start docker ps docker ps -a docker rm -d: weather run in the background or not. Note: usuall ... ...

PHP Monolog Basic

require __DIR__ . '/vendor/autoload.php'; use Monolog\Handler\StreamHandler; use Monolog\Logger; $logger = new Logger('main'); $logger->pushHandler(ne ... ...

一个赖人的方法用react-redux dispatch

用到的方法很简单,ES6 Object Destructuring. import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; //Import scss i ... ...

最简单的REACT程序加CSS & SASS

import React from 'react'; import ReactDOM from 'react-dom'; //External SASS & CSS import './scss/style.scss'; import './css/style.css'; //The sty ... ...

新的版本Babel的Namespace的改变/Update

前提 如何安装react: https://medium.freecodecamp.org/part-1-react-app-from-scratch-using-webpack-4-562b1d231e75 新的babal的namespace在之前有个@(babel 8.x以上) The rece ... ...

Redux的最基本样本代码(Immutable)

Redux其实就这样的一回事,十分的简单。 import { createStore } from "redux"; const initialState = { counter: 0 }; //Reducer function reducer(state = initialState, actio ... ...