GithubHelp home page GithubHelp logo

playground-formprocessor's Introduction

From Processor

Handles processing of forms on Vointaos.io.

Azure Functions in this project

Used to ensure the function app has deployed.

[Enqueue Submissions(./enqueue-submissions)

Receives all form submissions from Voitanos.io & saves them to the specified Azure Storage Queue.

The queue the form submission is saved to is defined by the formid in the URL: https://url/enqueue-submissions/formid. In this case, the submission is saved to the queue formid.

Response & redirection

If the form fields include one named redirectUrl, when the form is successfully submitted, the function responds with HTTP 308 & includes this URL in the Location header of the response.

Otherwise, if there's no field is set, the response is HTTP 200 OK

Deployment

All deployment to the Azure resource that hosts this Azure Function app is managed through GitHub actions. These cover the following scenarios:

  1. development of functions (ie: off the master branch)
  2. deployment to production (ie: on the master branch)

Development of functions

All development of functions on branches !master or !development are automatically built & tested by the Build app & run all tests workflow.

When a branch is pushed to any branch other than the master branch, this workflow builds & runs all unit tests.

Nothing is deployed in this case.

The Azure Function staging slot is used a pre-production. Any push to the master or development branches are considered a production deployment.

NOTE: The new feature branches can be sync'd & merged with the development branch to trigger deployment to staging. This enables testing the Azure Function in a real world environment.

A manual publish of a draft release triggers the production slot swapping.

GitHub actions workflows used in deployment

playground-formprocessor's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.