Skip to content

The project leverages the IOTA Tangle and its transactions immutability to provide services for Data Integrity and Trade Verification.

Notifications You must be signed in to change notification settings

DuncanMain/data-logging-verification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functions

Firebase functions

Install Firebase CLI

Before you can install the Firebase CLI, you will need to install Node.js on your machine. Once you've installed Node.js, you can install the Firebase CLI using npm by running the following command:

npm install -g firebase-tools

Install dependencies

Install dependencies listed in functions package.json files

cd functions && yarn

Testing

To test this locally, run firebase functions:shell

Then call a function with parameters user.post('/verify-token').form({ token: "" })

Deploy fo Firebase

  1. Log in to Firebase (for the first time use). Follow instructions on the screen.
firebase login
  1. Deploy
firebase deploy --project PROJECT_NAME
firebase deploy --only functions:function1,functions:function2
firebase deploy --only functions

Handling function timeouts

Default timeout can be changed here https://console.cloud.google.com/functions/list After you select your function and then press "Edit" it is located under the "More" drop-down at the bottom of the page. The current max is 540 seconds. Read more https://firebase.google.com/docs/functions/manage-functions#set_timeout_and_memory_allocation

CORS

See https://cloud.google.com/storage/docs/configuring-cors You can also use the gsutil cors command to get the CORS configuration of a bucket:

gsutil cors get gs://data-logging-verification.appspot.com

Use the gsutil cors command to configure CORS on a bucket:

gsutil cors set cors-config.json gs://data-logging-verification.appspot.com

About

The project leverages the IOTA Tangle and its transactions immutability to provide services for Data Integrity and Trade Verification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%