Skip to content

Instantly share code, notes, and snippets.

View AlexAlonsoMontero's full-sized avatar
🏠
Working from home

AlexAlonso AlexAlonsoMontero

🏠
Working from home
  • Vigo, Spain
View GitHub Profile
@AlexAlonsoMontero
AlexAlonsoMontero / vite-testing-config.md
Last active October 9, 2023 01:54 — 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
npm install --dev jest babel-jest @babel/preset-env @babel/preset-react 
@AlexAlonsoMontero
AlexAlonsoMontero / SwaggerConfigNodeJS.md
Last active July 14, 2022 09:36
Instalar y configurar Swagger para documentación en de una API en node con JavaScript

Congiguración de documentación automática son Swagger en NodeJS y Express

Image text

Explicación paso a paso, de como instalar y configurar swagger para documentación automática en un back-en realizado con NodeJS y JavaScript.

Instalación:

npm install swagger-jsdoc swagger-ui-express
@AlexAlonsoMontero
AlexAlonsoMontero / heroku-node--despliegue.md
Last active August 9, 2022 18:52
Como desplegar una aplicación NodeJS en Heroku

Como desplegar una aplicación NodeJS en Heroku

heroku login
heroku git:remote -a NOMBRE DEL PROYECTO EN HEROKU
@AlexAlonsoMontero
AlexAlonsoMontero / .eslintrc.js
Created November 1, 2022 10:25 — forked from dorfo-dev/.eslintrc.js
Nestjs config eslint and prettier
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',