Node-1st-gen/image-maker/README.md
This sample shows how to create various images through Functions and serve it to the client
It uses node-canvas to create a canvas environment on Node. That canvas is then used to create either a clock, sparkline chart, or sphere(s) in png format. The images are then cached on the server and sent to the client in image/png format.
image-maker directory.npm install -g firebase-tools and then configure it with firebase login.firebase use --add and select your project in the list.cd functions; npm install;This sample comes with a web-based UI for testing the function. To test locally do:
firebase serve --only hosting,functionshttps://localhost:5000.To deploy and test on prod do:
firebase deployfirebase open hosting:site, this will open a browser.We'd love that you contribute to the project. Before doing so please read our Contributor guide.
© Google, 2017. Licensed under an Apache-2 license.