Comando con Ruby instalado
ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'
Ejemplo: No usar en producción
4510c8cf2fe423f8be5afccbdd30c678677e172b
Comando con Ruby instalado
ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'
Ejemplo: No usar en producción
4510c8cf2fe423f8be5afccbdd30c678677e172b
import { bcryptAdapter } from '../../config'; | |
export const seedData = { | |
users: [ | |
{ name: 'Test 1', email: 'test1@google.com', password: bcryptAdapter.hash( '123456') }, | |
{ name: 'Test 2', email: 'test2@google.com', password: bcryptAdapter.hash( '123456') }, | |
{ name: 'Test 3', email: 'test3@google.com', password: bcryptAdapter.hash( '123456') }, |
version: '3.8' | |
services: | |
mongo-db: | |
image: mongo:6.0.6 | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: mongo-user |
export class Validators { | |
static get email() { | |
return /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/; | |
} | |
} |
{ | |
"editor.tabSize": 2, | |
"editor.detectIndentation": false, | |
"editor.insertSpaces": true, | |
"terminal.integrated.fontFamily": "MesloLGM NF", | |
"explorer.compactFolders": false, | |
"workbench.iconTheme": "material-icon-theme", | |
"material-icon-theme.activeIconPack": "qwik", | |
"workbench.startupEditor": "none", | |
"workbench.colorCustomizations": { |
export const regularExps = { | |
email: /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/, | |
} |
PORT=3000 | |
PUBLIC_PATH=public | |
POSTGRES_URL=postgresql://postgres:123456@localhost:5432/TODO | |
POSTGRES_USER=postgres | |
POSTGRES_DB=TODO | |
POSTGRES_PORT=5432 | |
POSTGRES_PASSWORD=123456 |
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt | |
npm i -D typescript @types/node ts-node-dev rimraf
npx tsc --init --outDir dist/ --rootDir src