├── README.md └── archivos ├── angular.md ├── capacitor.md ├── git.md ├── laravel.md ├── linux.md ├── pm2.md ├── react.md ├── sequelize.md └── web-development-sources.md /README.md: -------------------------------------------------------------------------------- 1 | ## Documentación 📌 2 | 3 | - [Angular](https://github.com/Ferdysd96/docs/blob/master/archivos/angular.md) 4 | - [Capacitor](https://github.com/Ferdysd96/docs/blob/master/archivos/capacitor.md) 5 | - [Git](https://github.com/Ferdysd96/docs/blob/master/archivos/git.md) 6 | - [Web Development Resources](https://github.com/Ferdysd96/docs/blob/master/archivos/web-development-sources.md) 7 | - [Clean code](https://github.com/ryanmcdermott/clean-code-javascript) 8 | - [TS Style Guide](https://github.com/basarat/typescript-book/blob/master/docs/styleguide/styleguide.md) 9 | - [JS Style Guide](https://github.com/airbnb/javascript) 10 | - [Linux](https://github.com/Ferdysd96/docs/blob/master/archivos/linux.md) 11 | - [PM2](https://github.com/Ferdysd96/docs/blob/master/archivos/pm2.md) 12 | - [HTML](https://github.com/danipv54/HTML-Dominicana) 13 | - [Public apis](https://github.com/public-apis/public-apis) 14 | --- 15 | Por [ferdysd96](https://github.com/ferdysd96) 😊 16 | -------------------------------------------------------------------------------- /archivos/angular.md: -------------------------------------------------------------------------------- 1 | ## ANGULAR 2 | 3 | 4 | ## ACTUALIZAR NPM 5 | 6 | ``` bash 7 | # Actualizar nmp 8 | $ npm install -g npm@latest 9 | 10 | # Limpiar la cahe de npm 11 | $ npm cache clean --force 12 | 13 | # Desactivar las auditorias para evitar fallos 14 | $ npm set audit false 15 | ``` 16 | 17 | ## DESINTALAR VERSIONES ANTIGUAS 18 | 19 | ```bash 20 | $ npm uninstall -g angular-cli 21 | 22 | $ npm uninstall -g @angular/cli 23 | ``` 24 | 25 | ## LIMPIAR CACHE NPM 26 | 27 | ```bash 28 | $ npm cache clean --force 29 | 30 | ``` 31 | 32 | ## INSTALAR ULTIMA VERSION 33 | 34 | ```bash 35 | $ npm install -g @angular/cli 36 | ``` 37 | 38 | ## ANGULAR CLI 39 | 40 | ``` bash 41 | # Crear nuevo proyecto 42 | $ ng new name --routing 43 | 44 | # Iniciar el proyecto 45 | $ ng serve 46 | 47 | # Crear Servicio 48 | $ ng g s name 49 | 50 | # Crear Pipe 51 | $ ng g p name 52 | 53 | # Crear Modulos 54 | $ ng g m name --routing 55 | 56 | # Crear Componentes 57 | $ ng g c name 58 | 59 | # Crear Guards 60 | $ ng g guard name 61 | 62 | ## Desplegar 63 | $ ng build --prod 64 | ``` 65 | -------------------------------------------------------------------------------- /archivos/capacitor.md: -------------------------------------------------------------------------------- 1 | ## CAPACITOR 2 | 3 | 4 | ## COMANDS 5 | 6 | ```bash 7 | # installation 8 | $ npm install @capacitor/core 9 | $ npm install @capacitor/cli --save-dev 10 | 11 | # Init 12 | $ npx cap init 13 | 14 | # Build 15 | $ ng build --prod 16 | 17 | # Add Plataform 18 | $ npx cap add android 19 | 20 | # Copy Plataform 21 | $ npx cap copy android 22 | 23 | # Open Plataform 24 | $ npx cap open android 25 | ``` 26 | -------------------------------------------------------------------------------- /archivos/git.md: -------------------------------------------------------------------------------- 1 | ## GIT 2 | 3 | ## NOMBRE USUARIO 4 | 5 | ``` bash 6 | # Asignar nombre 7 | $ git config --global user.name "your-name" 8 | 9 | # ver nombre 10 | $ git config --global user.name 11 | ``` 12 | 13 | ## CORREO USUARIO 14 | 15 | ``` bash 16 | # Asignar correo 17 | $ git config --global user.email "youremail@gmail.com" 18 | 19 | # Ver correo 20 | $ git config --global user.email 21 | ``` 22 | 23 | ## REMOTO 24 | 25 | ``` bash 26 | # Clonar un repositorio 27 | $ git clone repository-link.com 28 | 29 | # Conectar con nuestro repositorio 30 | $ git remote add origin repository-link.com 31 | 32 | # Comprobar la conexion 33 | $ git remote -v 34 | 35 | # Push para subir los commits 36 | $ git push -u origin new-branch 37 | $ git push 38 | 39 | # Cambiar url 40 | $ git remote set-url origin repository-link.com 41 | 42 | # Forzar el push (OJO) Solo sube tus commist y borra los demas 43 | $ git push origin new-branch --force 44 | $ git push -f 45 | 46 | # Integrar nuevos cambios 47 | $ git pull origin master --rebase 48 | $ git pull --rebase 49 | 50 | #Borrar rama remota 51 | git push -d origin new-branch 52 | ``` 53 | 54 | ## ARCHIVOS 55 | 56 | ``` bash 57 | # Iniciar git 58 | $ git init 59 | 60 | # Estado de los archivos 61 | $ git status 62 | 63 | # Agregar un archivo 64 | $ git add my-file 65 | 66 | # Agregar todos los archivos 67 | $ git add -A 68 | $ git add . 69 | 70 | # Remover archivo 71 | $ git rm --cached my-file 72 | ``` 73 | 74 | ## COMMITS 75 | 76 | ``` bash 77 | # Crear nuevo commit 78 | $ git commit -m "Initial commit" 79 | 80 | # Logs de los commits 81 | $ git log 82 | 83 | # Viajar al commit 84 | $ git checkout my-key 85 | 86 | # Volverl al último commit 87 | $ git checkout master 88 | ``` 89 | 90 | ## RESETS 91 | 92 | ``` bash 93 | # Borra despues de ese commit y nos deja el codigo 94 | $ git reset -- soft my-key 95 | 96 | # Borra despues de ese commit y borra todo el codigo (OJO) 97 | $ git reset -- hard my-key 98 | ``` 99 | 100 | ## RAMAS 101 | 102 | ``` bash 103 | # Ver las ramas 104 | $ git branch 105 | 106 | # Crear nueva rama 107 | $ git branch new-branch 108 | 109 | # Cambiar de rama 110 | $ git checkout new-branch 111 | 112 | # Crear nueva rama y cambiar a rama creada 113 | $ git checkout -b new-branch 114 | 115 | # Renombrar rama actual 116 | $ git branch -m new-name 117 | 118 | # Agregar cambios de una rama a otra (Preferiblemente antes que el merge) 119 | $ git rebase master 120 | 121 | # Unir ramas 122 | $ git merge master 123 | 124 | # Borrar rama 125 | $ git branch new-branch -d 126 | ``` 127 | 128 | ## KEY SSH 129 | 130 | ``` bash 131 | # Crear la key 132 | $ ssh-keygen -t rsa -b 4096 -C your_email@example.com 133 | 134 | 138 | 139 | # Agregar nuestra clave SSH al SSH-Agent 140 | $ eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_rsa 141 | 142 | # Ver tu clave pública 143 | $ cat ~/.ssh/id_rsa.pub 144 | 145 | 146 | 147 | # Probar tu conexion 148 | $ ssh -T git@bitbucket.org 149 | 150 | ``` 151 | 152 | ## FIJAR CREDENCIALES (LINUX) 153 | ```bash 154 | # Establecer un asistente de credenciales en la configuración de git 155 | $ git config --global credential.helper store 156 | 157 | #Establecer tiempo 158 | $ git config --global credential.helper 'cache --timeout=3600' 159 | ``` 160 | -------------------------------------------------------------------------------- /archivos/laravel.md: -------------------------------------------------------------------------------- 1 | ## LARAVEL 2 | 3 | 4 | ## CREAR PROYECTO 5 | 6 | ```bash 7 | # 6.0.* como version 8 | $ composer create-project laravel/laravel nombre "6.0.*" --prefer-dist 9 | ``` 10 | ## COMANDOS 11 | 12 | ```bash 13 | # Crear Controlador 14 | $ php artisan make:controller nombre 15 | 16 | # Crear Modelo 17 | $ php artisan make:model nombre 18 | 19 | # Crear Provider 20 | $ php artisan make:provider nombre 21 | 22 | # Crear Middleware 23 | $ php artisan make:middleware {Nombre} 24 | 25 | # Lista de rutas creadas 26 | $ php artisan route:list 27 | ``` 28 | -------------------------------------------------------------------------------- /archivos/linux.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## WEBPACK MAX WATCH 4 | 5 | ```bash 6 | echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p 7 | 8 | cat /proc/sys/fs/inotify/max_user_watches 9 | 10 | fs.inotify.max_user_watches=524288 11 | ``` 12 | 13 | ## REPOSITRIOS / LINKS 14 | 15 | #PGADMIN4 16 | ```bash 17 | #Importar LLave 18 | echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list 19 | 20 | #Crear archivo 21 | $ sudo nano /etc/apt/sources.list.d/pgdg.list 22 | 23 | #Guardar 24 | deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main 25 | 26 | $ sudo apt update 27 | $ sudo apt install pgadmin4 28 | ``` 29 | #POSTGRES 12 30 | 31 | - https://remot-technologies.com/como-instalar-postgresql-12-ubuntu-18-04/ 32 | 33 | ```bash 34 | #Entrar a postgres 35 | $ sudo -u postgres psql 36 | 37 | #Cambiar clave 38 | $ alter user postgres with password 'hello123'; 39 | ``` 40 | 41 | #Node 42 | 43 | - https://github.com/nodesource/distributions 44 | -------------------------------------------------------------------------------- /archivos/pm2.md: -------------------------------------------------------------------------------- 1 | ## PM2 2 | 3 | ## Instalar 4 | 5 | ```bash 6 | $ npm i -g pm2 7 | ``` 8 | 9 | ## INICIAR 10 | 11 | ```bash 12 | # Iniciar proyecto 13 | $ pm2 start nameProject/index.js 14 | 15 | #Iniciar todos los proyectos 16 | $ pm2 start all 17 | 18 | #Iniciar el proyecto con los siguientes flags 19 | $ pm2 start nameProject/index.js --aqui uno de los flags de abajo 20 | --watch: ver cambios, 21 | --name myname: asig nombre, 22 | ``` 23 | 24 | ## REINICIAR Y SUBIR 25 | 26 | ```bash 27 | #Aqui cuando el servidor se apaga o reinica 28 | #se auto ejecuta el proyecto 29 | 30 | # solo linux 31 | $ pm2 startup 32 | 33 | # Quitar solo linux 34 | $ pm2 unstartup 35 | 36 | # windows 37 | $ pm2 ecosystem 38 | $ pm2 start ecosystem.config.js 39 | ``` 40 | 41 | ## LISTAR 42 | 43 | ```bash 44 | #Ver un listado de proyetos 45 | $ pm2 ls 46 | ``` 47 | 48 | ## Reiniciar 49 | 50 | ```bash 51 | # Reiniciar por archivo, id o nombre 52 | $ pm2 restart nameProject/index.js 53 | 54 | #Reiniciar todos 55 | $ pm2 restart all 56 | ``` 57 | 58 | ## PARAR 59 | 60 | ```bash 61 | # Parar por archivo, id o nombre 62 | $ pm2 stop nameProject/index.js 63 | 64 | #Parar todos los proyectos 65 | $ pm2 stop all 66 | ``` 67 | 68 | ## ELIMINAR 69 | 70 | ```bash 71 | # Primero paramos todo 72 | $ pm2 stop all 73 | 74 | # Eliminamos por archivo, id o nombre 75 | $ pm2 delete nameProject/index.js 76 | 77 | # Eliminiar todo 78 | $ pm2 delete all 79 | ``` 80 | 81 | ## MONITOREAR 82 | 83 | ```bash 84 | # Monitorear en consola 85 | pm2 monit 86 | 87 | # Monitorear y Abre la web 88 | $ pm2 monitor 89 | ``` 90 | 91 | ## HISTORIAL 92 | 93 | ```bash 94 | #Ver logs 95 | $ pm2 log 96 | ``` 97 | -------------------------------------------------------------------------------- /archivos/react.md: -------------------------------------------------------------------------------- 1 | ## REACT 2 | 3 | 4 | 5 | ## ACTUALIZAR NPM 6 | 7 | ``` bash 8 | # Actualizar nmp 9 | $ npm install -g npm@latest 10 | 11 | # Limpiar la cahe de npm 12 | $ npm cache clean --force 13 | 14 | # Desactivar las auditorias para evitar fallos 15 | $ npm set audit false 16 | ``` 17 | 18 | ## Crear aplicación 19 | 20 | ```bash 21 | npx create-react-app my-app 22 | ``` 23 | 24 | -------------------------------------------------------------------------------- /archivos/sequelize.md: -------------------------------------------------------------------------------- 1 | ## SEQUELIZE 2 | 3 | 4 | ## COMANDOS 5 | 6 | ```bash 7 | # Instalar CLI 8 | $ npm install --save sequelize-cli 9 | 10 | # Inicializar 11 | $ npx sequelize-cli init 12 | 13 | # Crear modelo y migracion 14 | $ npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string 15 | 16 | # Solo generar migracion 17 | $ npx sequelize-cli migration:generate --name nombre 18 | 19 | # Generar Seeder 20 | $ npx sequelize-cli seed:generate --name nombre 21 | 22 | # Migaracion 23 | $ npx sequelize-cli db:migrate 24 | ``` 25 | -------------------------------------------------------------------------------- /archivos/web-development-sources.md: -------------------------------------------------------------------------------- 1 | ## WEB DEVELOPMENT SOURCES 2 | 3 | ## IU/UX 4 | 5 | - https://muz.li/ 6 | - https://uimovement.com/ 7 | - https://dribbble.com/ 8 | - https://mobbin.design/ 9 | - https://nicelydone.club/ 10 | 11 | ## ICONOS 12 | 13 | - https://www.flaticon.es/ 14 | - https://fontawesome.com/ 15 | - https://material.io/ 16 | - https://akveo.github.io/eva-icons/#/ 17 | - https://boxicons.com/ 18 | - https://icomoon.io/ 19 | - https://fontisto.com/ 20 | - https://iconscout.com/ 21 | 22 | ## FUENTES 23 | 24 | - https://fonts.google.com/ 25 | - https://www.dafont.com/es/ 26 | - https://www.1001freefonts.com 27 | - https://www.conversordeletras.com/ 28 | 29 | ## CSS 30 | 31 | - https://purecss.io/ 32 | - https://getbootstrap.com/ 33 | - https://bootswatch.com 34 | - https://materializecss.com/ 35 | - https://daneden.github.io/animate.css/ 36 | - https://get.foundation/ 37 | 38 | ## COLORES 39 | 40 | - https://webgradients.com/ 41 | - https://flatuicolors.com/ 42 | - https://coolors.co/app 43 | - http://paletton.com/ 44 | - http://www.colorbox.io/ 45 | - https://color.adobe.com/create 46 | - https://colorhunt.co/ 47 | - http://khroma.co/train/ 48 | 49 | ## IMAGENES 50 | 51 | - https://unsplash.com/ 52 | - https://pixels.com 53 | - https://humaaans.com 54 | - https://www.manypixels.co/ 55 | - https://undraw.co/illustrations 56 | - https://drawkit.io/free 57 | 58 | ## EXPRESIONES REGULARES 59 | 60 | - https://www.regextester.com/ 61 | 62 | 63 | ## CONTRASTES 64 | 65 | - https://contrastchecker.com/ 66 | 67 | ## CONTROLES PARA REPRODUCTORES 68 | 69 | - http://videojs.com/ 70 | - https://flowplayer.com/ 71 | 72 | 73 | ## RESPONSIVE 74 | 75 | - http://johnpolacek.github.io/Responsivator/ 76 | 77 | --------------------------------------------------------------------------------