Developers in teams might prefer using different operation systems such as Windows and MacOS. Some members write scripts for projects in PowerShell and others write them in Bash. It causes the other members who use different operation systems can run these scripts. After, some tries end errors. We came up an idea to create our own script runner that can execute bash script regardless the OS easily.
We like the idea of npm and make commands, we can define the project-related scripts in package.json and makefile. It makes scripts re-useable and makes other people who doesn’t work on the project…
AWS Serverless Application Model, aka SAM, is the bundling AWS services such as Lambda, APIGateway and DynamoDB, etc. Also, AWS provides tools to help developers easily develop serverless applications. AWS SAM supports many programming languages such as nodejs, go, python, etc. However, in this article, I used .NET and its web framework ASP.NET Core to demonstrate.
The reason I chose .NET not only I am familiar with it, but also AWS provides other tools for .NET. These tools make development easier than other programming languages (at least it is how I feel about it).
Why Use Serverless Applications?
The above image is a crash report of a react native app on New Relic which is not really readable. However, it contains some useful information such as
This article shows you how to use deeplink and push notification in react native and also combine them. Then when users tap the notification, the app can navigate to the specific screen. In order to show you more details, this article won’t use any other packages for deeplink and push notification. The source code of the example is here: https://github.com/wadehuang36/RnDpExample.
The example project is very simple. It just has a bottom-tab with three components using react-navigation.
Create a new project by
npx react-native init RnDpExample
Add React-Navigation and Url-Parse by
yarn add url-parse @react-navigation/native @react-navigation/bottom-tabs react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
import something from '../../../../forever'the long ugly related path in the projects. This article shows you how to solve that with module alias in React and React Native.
Using module alias in React Native is pretty easy. Actually, you already have one. The
package.json in the project root is a module alias.
For example, when we create a new React Native project and the name of the project is
MyRnApp, like this command.
npx react-native init MyRnApp
Then we can write
How to use Vagrant to quickly create Kubernetes clusters with CRI-O runtime.
I have used Docker and Docker Swarm for years. Recently, I started learning Kubernetes to see how good it is and why people like it. In the beginning, I used Docker Desktop and MiniKube to get a hand on. However, the two methods are just a single node cluster that I felt not more Kubernetes enough. I started to create VMs to build and try a more complicated Kubernetes environment and since docker might be too fat in the Kubernetes environment, so I chose CRI-O for the runtime…
I have used AWS ECR with docker for years, A thing annoying me is I have to login every 24 hours to pull or push images since the access token expires in 24 hours. The good thing is we can use amazon-ecr-credential-helper to help us log in automatically. However, it is still not very helpful enough with multiple AWS Accounts, then I created a way to make it easier.
In case you haven’t used amazon-ecr-credential-helper before, I show you how to install it first.
NOTE: The download links of the pre-built execution files can be found on https://github.com/awslabs/amazon-ecr-credential-helper/releases. I…
Expert at .Net, Nodejs, Android, React and React Native