https://mega.nz/folder/dLIWkbCB#0MH4CBGlj0JUA6n00EbpDg
https://mega.nz/folder/oWAwAR5Y#WsyNfvNK_SkoFXS4WJKcTA
https://mega.nz/folder/RGBgHJIS#qOsdOXynX41S5TFOP0PqHg
// check version | |
node -v || node --version | |
// list installed versions of node (via nvm) | |
nvm ls | |
// install specific version of node | |
nvm install 6.9.2 | |
// set default version of node |
> Your password must be at least 8 characters long and include at least one number and one of the following symbols !@#$%^&()* | |
const isEmailValid = (mail) => { | |
if (mail) { | |
return /^\S+@\S+\.\S+$/.test(mail) === true | |
} | |
return true | |
} | |
const isPasswordValid = (pass) => { |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
<?php | |
$host = 'localhost'; | |
$user = 'root'; | |
$password = '123456'; | |
$dbname = 'pdoposts'; | |
// Set DSN | |
$dsn = 'mysql:host='. $host .';dbname='. $dbname; | |
// Create a PDO instance |