Concrete example of Deno Run on Cloud Run. Could be used as boilerplate for Deno in Docker / on Google Cloud Run.
Concrete example of Deno Run on Cloud Run. Could be used as boilerplate for Deno in Docker / on Google Cloud Run.
First, make sure you have Deno installed
Then, to locally run, execute:
deno run --allow-env --allow-net main.ts
This will build and run the demo.
To run in docker, first build the app:
docker build -t denotest .
then run the container:
docker run -it --init -p 8080:8080 denotest
The dockerfile will pre-cache all dependencies.
Because the whole thing runs in Docker, this is easy (make sure you are logged in and have the right project on GCP selected with gcloud
):
This is optional, but nice to have:
GCP_PROJECT=$(gcloud config list --format 'value(core.project)')
gcloud builds submit --tag gcr.io/$GCP_PROJECT/denotest
gcloud run deploy denotest --image gcr.io/$GCP_PROJECT/denotest --platform managed --allow-unauthenticated
Author: rogiervandenberg
Source Code: https://github.com/rogiervandenberg/deno-docker-cloudrun
Helix Querybuilder .AEM Querybuilder for JavaScript (Browser, Node, Deno)
A public-key signature system based on Ed25519 for the NATS ecosystem system for JavaScript. The nkeys.js library works in Deno, Node.js, and the browser!
A work-in-progress Javascript maze generator module, compatible with both Deno and Node.
Deno is released, it’s time to find out if it can prove a worthy competition for Node.js. What is Deno? Why Deno can be considered an alternative to Node? The main differences between Deno and Node. Write a simple Deno app.
What is Deno? The Node.JS Killer? The Deno-minator to Node? Deno is the new hype and will it be better than node.js? Deno is a secure runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language that addresses Node’s shortcomings