Comments (5)
small addition, I adapted the demo instructions to run on Windows:
:: Add the stock NodeJS env to your Fission deployment
fission env create --name nodejs --image fission/node-env
:: A javascript one-liner that prints "hello world"
echo module.exports = function(context, callback) { callback(200, "Hello, world!\n"); } > hello.js
:: Upload your function code to fission
fission function create --name hello --env nodejs --code hello.js
:: Map GET /hello to your new function
fission route create --method GET --url /hello --function hello
:: Run the function in the default browser. This takes about 100msec the first time.
explorer http://%FISSION_ROUTER%/hello
:: Hello, world!
Changes:
- comments use
::
instead of"
echo
does not use quotes, if you do it will add them to the content in the filecurl
is not available butexplorer
will hand over URL's to the default browser
from fission.
@seriousme Thanks for testing it on windows! Yes we should do this. I've tried cross compiling it: would you mind testing it a bit and confirming that it works?
http://fission.io/windows/fission.exe
from fission.
I tested it a bit and it works (as expected ;-))
To set the environment variables I use:
for /f "delims=" %%a in ('minikube ip') do @set minikube_ip=%%a
set FISSION_URL=http://%minikube_ip%:31313
set FISSION_ROUTER=%minikube_ip%:31314
Cheers,
Hans
from fission.
Awesome, thanks for the env var snippet. I'll include that in instructions for windows.
from fission.
Thanks! Let me just keep this issue open to track adding that to the instructions.
from fission.
Related Issues (20)
- Allow Keycloak issuer HOT 1
- 404 error when testing fission function HOT 7
- Remove event.delete permission HOT 1
- About Kubernetes Version HOT 2
- fatal error: concurrent map writes
- client version and server version not match HOT 1
- How to count the 99% tail delay quantile of Fission
- Utilize .Release.Name as Standard Prefix for All Kubernetes Resources in Helm Chart
- [help] how to build fission-bundle image
- Unable to Create Duplicate HTTP Trigger Names Across Different Namespaces HOT 1
- Fission watch all namespaces HOT 1
- Loki integration Issue HOT 5
- Router cannot create resource Ingresses HOT 2
- Fission helm conflicts with Rancher
- [help] Is it possible to create a Python function from a zipped release in GitHub?
- Failed to create MessageQueueTrigger HOT 1
- "fission check" does not work outside of "fission" namespace
- Thoughts on the Functional Positioning of the Executor Component
- fission package build stuck in running
- Package build trigger mechanism (esp. if fission packages are deployed with gitops)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fission.