Venni backend - The backend of the Venni client apps implementing the credit card payments, matching algorithms, bank transfers, trip rating system, and more.

Overview

Cloud Functions

Description

This repository contains the cloud functions used in the Firebase backend of the Venni apps.

Local Development

Setup

For the commands below to work, you must properly set up the environment. First, following the Initialize SDK in online mode tutorial, add the specified service account's key file to the path functions/devAdminCredentials.json. This will grant permission for Cloud Functions to access other APIs such as Realtime Database when emulated.

Second, be sure to set a GOOGLE_MAPS_API_KEY environment variable containing a google maps API key crendential that can be used for the Directions API. This will allow functions to access the google maps APIs.

Testing

Execute the following command to run the tests present in the functions/test folder. TODO: how does this relate to make emulator

make test

Emulating

Should you want to test how your functions behave before deploying them or even write end-to-end tests in your apps, you can start a local emulator by doing

make emulator

The emulator will run the Cloud Functions locally and its UI will be available in the port 4000. Note that other firebase resources, such as Database, Authentication and Storage, will still run remotely in the project specified by the functions/devAdminCredentials.json file. You can send request to the emulator from your apps by using the httpsCallable method of the FirebaseFunctions flutter library.

Deploying

To deploy to default project, do

make deploy

To deploy to the venni-rider-development project, do

make deploy-dev

In both cases, if the DEPLOYGROUP environment variable is set, only functions belonging to the specified group are deployed.

Important: avoid usings these commands when deploying more than 10 functions at a time. Doing so may exceed the standard quota and receive HTTP 429 or 500 error messages. Instead, deploy each function manually.

You might also like...

Lazerpay SDK allows you accept payments easily in your react application

Lazerpay SDK allows you accept payments easily in your react application

Lazerpay Official react sdk Lazerpay SDK allows you accept payments easily in your react application Installation npm install lazerpay-react Usage imp

Nov 20, 2022

🏦 Defi Bank is a dapp created for ethereum 101 course of cadena.dev

🏦 Defi Bank is a dapp created for ethereum 101 course of cadena.dev

Welcome to DefiBank 👋 Defi Bank is a dapp created for ethereum 101 course of cadena.dev ✨ Demo Install npm install Usage npm run dev Tech NextJS Reac

Nov 21, 2022

shields.io for Hack Club Bank

Hack Club Bank shields.io Badges Easily show your Hack Club Bank organization's balance using shields.io badges! This repo contains the instructions f

Sep 25, 2022

Built with Anima: A functioning bank app powered by Anima & Strapi

Built with Anima: A functioning bank app powered by Anima & Strapi

Bank website A functioning bank app powered by Anima & Strapi: Live Demo In this tutorial, we redesigned SVBs banking dashboard using Anima's open sou

Nov 21, 2022

An example SvelteKit app implementing a simple authentication system.

An example SvelteKit app implementing a simple authentication system.

SvelteKit Auth Example An example SvelteKit app implementing a variety of authentication backends View the demo NOTE: this is very much a work in prog

Dec 30, 2022

Application for organizing, rating, and sharing TV series and movies that you are watching or would like to watch.

Application for organizing, rating, and sharing TV series and movies that you are watching or would like to watch.

Watch This! We're living in an age of virtually unlimited ntertainment options, and keeping up with it all can be a little overwhelming. Using the Wat

Jun 13, 2022

It consists of a recreation of Twitter, to put into practice both Front-end and Back-end knowledge by implementing the MERN Stack together with other technologies to add more value to the project.

Twitter-Clone_Back-end ✨ Demo. 💻 About the project. 📜 Descriptions. It consists of a recreation of Twitter, to put into practice knowledge of both F

Apr 12, 2022

It consists of a recreation of Twitter, to put into practice knowledge of both Front-end and Back-end implementing the MERN Stack along with other technologies to add more value to the project.

It consists of a recreation of Twitter, to put into practice knowledge of both Front-end and Back-end implementing the MERN Stack along with other technologies to add more value to the project.

Twitter-Clone_Front-end ✨ Demo. Login Home Profile Message Notifications Deployed in: https://twitter-clone-front-end.vercel.app/ 💻 About the project

Jun 26, 2022

pre-calculated list of similar Persian words ordered by rating and best match

similar-persian-words pre-calculated list of similar Persian words ordered by rating and best match. Install npm: npm install similar-persian-words Us

May 29, 2022
Owner
Abrantes
.
Abrantes
A website for detecting name of bank from card number, supported all Iranian banks

Detect Iranian Bank Web A website for detecting name of bank from card number, supported all Iranian banks. This package contains SVG logo and brand c

Max Base 12 Oct 2, 2022
A jQuery-free general purpose library for building credit card forms, validating inputs and formatting numbers.

A jQuery-free general purpose library for building credit card forms, validating inputs and formatting numbers.

Jesse Pollak 528 Dec 30, 2022
Science! Testing various image matching algorithms' performance on the Pinecone vector DB

Image Matching Algorithms For Use With KNN Search As part of the development of alt-text.org, it's necessary to perform large-scale fuzzy matching of

null 38 Sep 3, 2022
Cardmatchinggamebyercan - A card-matching game made with Flutter.

card_matching_game_by_ercan A card-matching game. Working Demo: https://confident-austin-19dbd2.netlify.app Getting Started This project is a starting

Ercan Tomac 17 Dec 14, 2022
Planning a getaway with family or friends and looking for a trip planner app to help you figure out the logistics?

Never-Wavering-Wayfaring-Wanderlust-Adventure-Planner Planning a getaway with family or friends and looking for a trip planner app to help you figure

Michelle Blackwell 3 Jun 15, 2022
A simple backend app for managing invoices and tracking their payments for the Monero cryptocurrency.

Simpla Vendejo API This app runs a view-only Monero wallet to verify payments and keeps track of them in a MySQL database. /create_invoice Method: POS

Ben Evanoff 6 Jun 30, 2022
Receive crypto payments from anywhere around the world, options including native tokens (MATIC, ETHER,BUSD), Tokens (USDT,BUSD), NFTs and more.

Receive payments for service rendered in crypto using different options. Go borderless with bonpay, gain access to varities of crypto assets, safe and

Johnson awah Alfred 6 Nov 11, 2022
The Frontend of Escobar's Inventory Management System, Employee Management System, Ordering System, and Income & Expense System

Usage Create an App # with npx $ npx create-nextron-app my-app --example with-javascript # with yarn $ yarn create nextron-app my-app --example with-

Viver Bungag 4 Jan 2, 2023
This is an imitation of the Amazon online shopping store. Users can add and remove items from the cart, proceed to checkout and make payments.

AMAZON This is an imitation of the Amazon online shopping store. Users can add and remove items from the cart, proceed to checkout and make payments.

Kevv_in 7 Mar 23, 2022
A website for tracking community support for BIP21 QR codes that support on-chain and lightning bitcoin payments.

BIP21 Microsite This is a WIP microsite to promote the usage of a BIP21 payment URI QR code that can include lightning invoices or offers. Wallet supp

Stephen DeLorme 16 Nov 27, 2022