Instalando Docker em um WSL 2 com Ubuntu 22.04
Before start the installation process, make sure you meet the following prerequisites:
- A Windows 10 operating system with WSL 2 support.
- WSL 2 enabled.
- Ubuntu 22.04 installed on WSL 2.
Painel admin simples feito com HTML e CSS (Flexbox, abordagem mobile-first e responsividade)
Obs: Icons of Font Awesome library/toolkit were also used.
[index.html]
Redis - Data types (Strings, Hashes, Lists and Sets)
Nós vamos conversar sobre as seguintes estruturas de dados disponíveis no Redis: string, hash, list and set.
Se você quiser utilizar uma aplicação online para testar seu código Redis, você pode usar o seguinte link:
Incluindo documentação de API numa aplicação Laravel 10 utilizando package Scribe
Scribe helps you generate API documentation for humans from your Laravel codebase.
You can learn more about the package here: https://scribe.knuckles.wtf/laravel/
We will see how to implement it.
# Defining base image | |
FROM php:8.2-fpm-alpine | |
# Setting arguments | |
ARG user=developer | |
ARG uid=1000 | |
# Steps of this layer: | |
# - Install system dependencies | |
# - Install and enable PHP extensions |
// Path: src/modules/user/dtos/create-user.dto.ts | |
import { IsOptional, IsNotEmpty, MaxLength, MinLength, IsString, IsEmail } from 'class-validator'; | |
import { IsUnique } from '@modules/common/decorators/is-unique.decorator'; | |
export class CreateUserDto { | |
@IsOptional() | |
@IsString() | |
@MinLength(2) | |
@MaxLength(70) |
// Path: src/modules/character/dtos/create-character.dto.ts | |
import { IsNotEmpty, MaxLength, MinLength } from 'class-validator'; | |
import { ExistsOnDatabase } from '@modules/common/decorators/exists-on-database.decorator'; | |
export class CreateCharacterDto { | |
@IsNotEmpty() | |
@MinLength(2) | |
@MaxLength(100) | |
name: string; |