Bootstrapping a Typescript Worker

Cloudflare Workers allows you to quickly deploy Javascript code to our 150+ data centers around the world and execute very close to your end-user. The edit/compile/debug story is already pretty amazing using the Workers IDE with integrated Chrome Dev Tools. However, for those hankering for some Typescript and an IDE with static analysis, autocomplete and that jazz, follow along to see one way to set up a Typescript project with Webstorm and npm run upload your code straight to the edge.
Pre Requisites
My environment looks like this:
- macOS High Sierra
- node v8.11.3
- npm v5.6.0
- Webstorm v2018.1.3
You'll also need a Cloudflare domain and to activate Workers on it.
I'll be using cryptoserviceworker.com
I'll also use Yeoman to build our initial scaffolding. Install it with npm install yo -g
Getting Started
Let's start with a minimal node app with a "hello world" class and a test.
mkdir cryptoserviceworker && cd cryptoserviceworker
npm install generator-node-typescript -g
yo node-typescript
That generator creates the following directory structure:
drwxr-xr-x 16 steve staff 512 Jun 18 20:40 .
drwxr-xr-x 10 steve staff 320 Jun 18 20:35 ..
-rw-r--r-- 1 steve staff 197 Jun 18 20:40 .editorconfig
-rw-r--r-- 1 steve staff Continue reading
Cavium, Nutanix, and Equinix are all customers using the security company’s predictive breach-risk platform.
Network operators that are transitioning to 5G need to manage a significantly greater number of switching routes compared to data center operators.
SDN technologies are diverse, making it difficult for network engineers to know what technologies they should learn to master.
The operators plan to release the results of the RFI and a shortlist of potential vendors at the TIP Summit in October in London.
The vADC uses central management tools to accelerate service deployment and increase security, scalability, and resiliency of applications as enterprises migrate to the cloud.
It can be difficult to control radio frequency (RF) conditions, which can be impacted by some atmospheric conditions.
The platform allows customers to consume Kubernetes without the need to get their hands dirty with the deployment and operation of Kubernetes clusters.