This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
| /* Basic example of saving cookie using axios in node.js and session's recreation after expiration. | |
| * We have to getting/saving cookie manually because WithCredential axios param use XHR and doesn't work in node.js | |
| * Also, this example supports parallel request and send only one create session request. | |
| * */ | |
| const BASE_URL = "https://google.com"; | |
| // Init instance of axios which works with BASE_URL | |
| const axiosInstance = axios.create({ baseURL: BASE_URL }); |
| // SO responsive mixin | |
| // a mixin is different from a function as it does not return a value but serves as placeholder for code | |
| @mixin responsive( $breakpoint ) { | |
| /* | |
| breakpoints are viewport arbitrary values, | |
| they are defined with the aim of allowing the SCSS/CSS code of your app' behave accordingly to your user's device width, | |
| the breakpoints I used were inspired by Bootstrap => | |
| https://getbootstrap.com/docs/5.0/layout/breakpoints/ | |
| */ | |
| @if $breakpoint == smartphone-portrait { |