Skip to content

Instantly share code, notes, and snippets.

View jd4n1's full-sized avatar
馃挱
I may be slow to respond.

Daniel R jd4n1

馃挱
I may be slow to respond.
View GitHub Profile
@jd4n1
jd4n1 / Dockerfile
Created September 16, 2022 23:20 — forked from Klerith/Dockerfile
Preparar imagen de Docker - Node App
# Install dependencies only when needed
FROM node:18-alpine3.15 AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Build the app with cache dependencies
FROM node:18-alpine3.15 AS builder
@jd4n1
jd4n1 / instalaciones-nestjs.md
Created September 11, 2022 13:19 — forked from Klerith/instalaciones-nestjs.md
Instalaciones recomendadas para el curso de Nest.js
@jd4n1
jd4n1 / vite-testing-config.md
Created July 4, 2022 00:36 — forked from Klerith/vite-testing-config.md
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalaci贸n y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@jd4n1
jd4n1 / ReactNative-instalaciones.md
Created June 15, 2022 16:43 — forked from Klerith/ReactNative-instalaciones.md
Instalaciones recomendadas para el curso de React Native