First I follow my previous article:

Install the dependencies

npm install got metascraper metascraper-description metascraper-image metascraper-title

Time to code our function

cd api
touch metascraper.ts
cd ..

and the copy in the metascraper.ts the code below

import { VercelRequest, VercelResponse } from '@vercel/node';
import got from 'got';
import createMetascraper from 'metascraper';
import metascraperDescription from 'metascraper-description';
import metascraperImage from 'metascraper-image';
import metascraperTitle from 'metascraper-title'…


Compile your typescript function and lint it before pushing it. Don't push useless library to the cloud and keep your function as small as it should be.

Init your Amplify project

npm init private
amplify init

Then choose as below (or according to…


Install Vercel CLI

npm i -g vercel

Create an account here: https://vercel.com/signup

Init your project

mkdir my-api
cd my-api
npm init private
npm install @vercel/node

Install typescript and add tsconfig.json

npm install --save-dev typescript

Then add tsconfig.json:

curl -o tsconfig.json https://gist.githubusercontent.com/vdelacou/1954a25d720f702b4af011ba2773001b/raw/tsconfig.json

Time to code our function!

Vercel will consider all the files in the api folder as a function…


With Serverless Framework and AWS CloudFront. Delete Cache on redeploying and force redirect according to browser language

Deploy to CloudFront with Serverless

With the rise of Single Page Application (SPA), the use of a Content Delivery Network (CDN) is more than recommended. It allows us to have fast and reliable static hosting with easy HTTPS set up around the world. I love CloudFront, but I was always frustrated with 2 things, that…


With React-Native and Visual Studio App Center

Windows with XCode on the cloud

Most people think that it’s impossible to deploy an app to Apple Store without having a Mac but with VS App Center we can use XCode on the cloud and deploy our App to the App Store

If you want to deploy to…


With React-Native and Visual Studio App Center

Windows with XCode on the cloud

Most people think that it’s impossible to deploy an app on a device without having a Mac but with VS App Center we can use XCode on the cloud and distribute our App on iOS

Requirements

As we don’t have a Mac, we will…


Step by step setup for stack and modal navigation

I recommend you to follow my previous article to setup your React Native project with Typescript

GITHUB REPO: https://github.com/vdelacou/iblis_native_template/tree/react-navigation

In this article all the folders or files have to be created in thesrc folder

Add React Native Vector Icons

Install the dependencies

$ npm install react-native-vector-icons --save

Install the types

$ npm install @types/react-native-vector-icons --save-dev


Also configure VS Code and setup TSLint

Initialize the React Native Project

Follow the official installation for Building Projects with Native Code https://facebook.github.io/react-native/docs/getting-started

$ npm install -g react-native-cli

Since React Native 0.57 Typescript is support out of box

$ react-native init myapp --template typescript

Go to app folder

$ cd myapp

If you want to…


Test and develop locally AWS AppSync with DynamoDB using Serveless Framework

This article is a guide to create a Serverless GraphQL API with AWS AppSync and with DynamoDB as data-source. After deploying the API, it will explain how to use it and test it with a chrome extension. …

Vincent Delacourt

Interesting in start-up or project development in the latest technologies for web and mobile apps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store