This file contains 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
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | |
# dependencies | |
/node_modules | |
/.pnp | |
.pnp.js | |
# testing | |
/coverage |
This file contains 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
Typescript: | |
nodo html --> button | |
evento --> onClick | |
codigo: | |
<button onClick={decreaseBy(1)}>+1</button> | |
error: |
This file contains 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
docker run --name world-db ` | |
--env MARIADB_USER=example-user ` | |
--env MARIADB_PASSWORD=user-password ` | |
--env MARIADB_ROOT_PASSWORD=root-secret-password ` | |
--env MARIADB_DATABASE=world-db -dp 3306:3306 ` | |
--volume world-db:/var/lib/mysql ` | |
--network world-app ` | |
mariadb:jammy | |
This file contains 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
package pe.cjjc.projects.controller; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
@Controller | |
public class HomeController | |
{ | |
@RequestMapping ("/") | |
public String home () |
This file contains 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
#creamos el volumen para persistir la data | |
docker volume create vol-cibertec-1 | |
#Descargamos la imagen | |
#Creamos el contenedor a correr | |
#Colocamos los parámtetros iniciales | |
#Exponemos el contenedor en el puerto 3306 | |
docker container run ` |
This file contains 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
version: '4' | |
services: | |
dberp: | |
container_name: ra_postgres_db | |
image: postgres:15-alpine3.19 | |
volumes: | |
#- postgres-db:/var/lib/postgresql/data #example | |
- ./postgres:/var/lib/postgresql/data | |
ports: |