// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#taked from: | |
#https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04 | |
#https://downloads.mariadb.org/mariadb/repositories/#version=10.2&mirror=yamagata-university&distro=Ubuntu&distro_release=xenial--ubuntu_xenial | |
#https://tecadmin.net/install-php-7-on-ubuntu/ | |
sudo apt-get update | |
sudo apt-get install -y apache2 | |
#Set Global ServerName to Suppress Syntax Warnings -> sudo nano /etc/apache2/apache2.conf -> add in the end : ServerName server_domain_or_IP | |
#check it -> | |
sudo apache2ctl configtest | |
sudo systemctl restart apache2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i create-react-app -g // only once to install this app | |
//on each project | |
create-react-app app // redux is invalid name | |
npm i redux --save | |
npm i react-redux --save | |
npm i babel-plugin-transform-decorators-legacy --save | |
npm run eject | |
//and then search for 'babel-loader' | |
//in webpack.config.dev && webpack.config.prod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx create-react-app newapp // only first time to install react | |
create-react-app newapp // newapp is the name of new folder with json-pack | |
npm i redux --save // --save means to save in json package | |
npm i react-redux --save | |
npm i babel-plugin-transform-decorators-legacy --save | |
npm run eject | |
search for 'babel-loader' in webpack.congig.dev && webpack.config.prod | |
add ' plugins:['transform-decorators-legacy'],' insade options | |
in react we need to export Provider and connect from 'react-redux' | |
wrap - with Provider the main App component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx create-react-app newapp // only first time to install react | |
create-react-app newapp // newapp is the name of new folder with json-pack | |
npm i redux --save // --save means to save in json package | |
npm i react-redux --save | |
npm i babel-plugin-transform-decorators-legacy --save | |
npm run eject | |
search for 'babel-loader' in webpack.congig.dev && webpack.config.prod | |
add ' plugins:['transform-decorators-legacy'],' insade options | |
in react we need to export Provider and connect from 'react-redux' | |
wrap - with Provider the main App component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |