To using GO in Azure Function, we will use Custom Handler . These are steps : Add Azure Function 2. In VS Code , Create New Project 3. Setting Custom Handler Select HTTP Trigger . After done, folder should be like this 4. Create file handler.go in root folder package main import ( "io/ioutil" "log" … Continue reading Azure Function with GO
Author: baodinhthe
Azure ocr with Go
These are options to make request with OCR (Azure Cognitive Services) in GO: Read from file : file, err := os.Open("img.png") if err != nil { panic(err) } defer file.Close() client := &http.Client{} req, err := http.NewRequest("POST", "https://endpoint/vision/v3.0/ocr", file) req.Header.Add("Content-Type", "application/octet-stream") req.Header.Add("Ocp-Apim-Subscription-Key", "key") //Handle Error if err != nil { log.Fatalf("An Error Occured %v", err) … Continue reading Azure ocr with Go
expo-local-authentication
This is an example : //Determine whether a face or fingerprint scanner is available on the device. LocalAuthentication.hasHardwareAsync().then((isSupported) => { if (isSupported) { //Determine what kinds of authentications are available on the device LocalAuthentication.supportedAuthenticationTypesAsync().then((type) => { /* 1 : fingerprint 2 : facial 3 : iris recognition (Android only) */ if (type.indexOf(1) !== -1) { … Continue reading expo-local-authentication
React Native with AWSMobile (Auth SignUp)
I am going to show how to use the AWS Mobile CLI to configure a new React Native project with AWS Amplify + Cognito & enable user sign up and sign in. This also goes over how to enable two factor authentication. Step 1: Create React Native project react-native init sample cd sample mkdir src … Continue reading React Native with AWSMobile (Auth SignUp)
Setting up a Static Website Using AWS S3 and Route 53 (Part 2)
In previous part, i have shown how to hosting website using AWS S3. In this part, i am going to show how to configure Amazon Route 53 as your Domain Name System (DNS) provider. If you want to serve content from your root domain, such as demosite.com, you must use Amazon Route 53. You create … Continue reading Setting up a Static Website Using AWS S3 and Route 53 (Part 2)
Setting up a Static Website Using AWS S3 and Route 53 (Part 1)
In this part, i am going to show my experience how to deploy simple Angular in AWS S3. Step 1: Assuming you already have simple site with Angular CLI ng new PROJECT-NAME cd PROJECT-NAME ng serve Next, using ng build to compiles the application into an output directory. It will generate code in the dist/ … Continue reading Setting up a Static Website Using AWS S3 and Route 53 (Part 1)
Deploy Go in AWS Beanstalk
Follow the steps here to walk you through the process of deploying a Go application to Elastic Beanstalk Step 1: Create Go project Create Go project with application.go: package main import ( "encoding/json" "log" "net/http" "os" ) func main() { port := os.Getenv("PORT") if port == "" { port = "5000" } f, _ := … Continue reading Deploy Go in AWS Beanstalk