Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
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
| [alias] | |
| acm = "!f() { git add . && git commit -m \"$(echo $@)\"; }; f"; | |
| com = checkout master | |
| cob = checkout -b | |
| b = branch | |
| p = push | |
| pl = pull | |
| s = status |
| import * as yup from 'yup'; | |
| import { setIn } from 'final-form'; | |
| const validationSchema = yup.object({ | |
| email: yup.string().email(), | |
| shipping: yup.object({ | |
| name: yup.string(), | |
| phone: yup.object({ | |
| code: yup.string().matches(/^\+\d+$/i), | |
| number: yup.number().max(10), |