Skip to content

Instantly share code, notes, and snippets.

View robertofrontado's full-sized avatar
🐶
Working from home

Roberto Frontado robertofrontado

🐶
Working from home
View GitHub Profile
@robertofrontado
robertofrontado / serverless-todo-updatetodo-with-service.ts
Created May 22, 2020 17:30
serverless-todo-updatetodo-with-service
import 'source-map-support/register'
import { APIGatewayProxyHandler, APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda'
import TodoService from '../../services/todoService'
import { TodoItem } from '../../models/TodoItem'
export const handler: APIGatewayProxyHandler = async (event: APIGatewayProxyEvent): Promise<APIGatewayProxyResult> => {
const id = event.pathParameters.id
const todoService = new TodoService()
@robertofrontado
robertofrontado / serverless-todo-gettodos-with-service.ts
Created May 22, 2020 17:30
serverless-todo-gettodos-with-service
import 'source-map-support/register'
import { APIGatewayProxyHandler, APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda'
import TodoService from '../../services/todoService'
export const handler: APIGatewayProxyHandler = async (_event: APIGatewayProxyEvent): Promise<APIGatewayProxyResult> => {
const todoService = new TodoService()
const items = await todoService.getAllTodos();
return {
@robertofrontado
robertofrontado / serverless-todo-deletetodo-with-service.ts
Created May 22, 2020 17:31
serverless-todo-deletetodo-with-service
import 'source-map-support/register'
import { APIGatewayProxyHandler, APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda'
import TodoService from '../../services/todoService'
export const handler: APIGatewayProxyHandler = async (event: APIGatewayProxyEvent): Promise<APIGatewayProxyResult> => {
const id = event.pathParameters.id
const todoService = new TodoService()
await todoService.deleteTodoById(id)
@robertofrontado
robertofrontado / XcodeGenSample-simple-project.yml
Created July 8, 2020 19:45
Project spec used to generate a simple application
name: XcodeGenSample
options:
bundleIdPrefix: com.frontado
deploymentTarget:
iOS: 13.0
targets:
XcodeGenSample:
type: application
platform: iOS
sources:
@robertofrontado
robertofrontado / XcodeGenSample-simple-unittest-project.yml
Created July 8, 2020 19:55
Project spec used to generate a simple application with unit tests
name: XcodeGenSample
options:
bundleIdPrefix: com.frontado
deploymentTarget:
iOS: 13.0
targets:
XcodeGenSample:
type: application
platform: iOS
sources:
@robertofrontado
robertofrontado / XcodeGenSample-modular-project.yml
Created July 8, 2020 20:07
Project spec used to generate a modular application with unit tests
name: XcodeGenSample
options:
bundleIdPrefix: com.frontado
deploymentTarget:
iOS: 13.0
targets:
XcodeGenSample:
type: application
platform: iOS
sources:
@robertofrontado
robertofrontado / XcodeGenSample-modular-main-project.yml
Created July 8, 2020 20:15
Project spec used to generate a modular application - File 1
name: XcodeGenSample
options:
bundleIdPrefix: com.frontado
deploymentTarget:
iOS: 13.0
targets:
XcodeGenSample:
type: application
platform: iOS
sources:
@robertofrontado
robertofrontado / XcodeGenSample-modular-authentication-project.yml
Created July 8, 2020 20:17
Project spec used to generate a modular application - File 2
name: Authentication
options:
bundleIdPrefix: com.frontado
deploymentTarget:
iOS: 13.0
targets:
Authentication:
type: framework
platform: iOS
sources:
@robertofrontado
robertofrontado / XcodeGenSample-modular-profile-project.yml
Created July 8, 2020 20:17
Project spec used to generate a modular application - File 3
name: Profile
options:
bundleIdPrefix: com.frontado
deploymentTarget:
iOS: 13.0
targets:
Profile:
type: framework
platform: iOS
sources:
@robertofrontado
robertofrontado / XcodeGenSample-modular-main-swiftlint-project.yml
Created July 8, 2020 20:23
Project spec used to generate a modular application with Swiftlint
name: XcodeGenSample
options:
bundleIdPrefix: com.frontado
deploymentTarget:
iOS: 13.0
targets:
XcodeGenSample:
type: application
platform: iOS
sources: