Code Monkey home page Code Monkey logo

lowdefy-example-survey's Introduction

Lowdefy Survey Example

Netlify Status

View this example.

This is a simple customer survey example built with Lowdefy. With this example we demonstrate how simple it is to define a public webform and thank you page in Lowdefy.

This survey example is deployed using Netlify.

This example queries all employees with the "Sales person" role from a Google sheet on page initialization. This list of sales people names are used to populate a dropdown selector in the webform. The webform contains some conditional logic which demonstrates Lowdefy's ability to express advanced custom logic in simple readable app config. See the logic in action by writing a complaint about Dwight. Upon completion, the captured data is saved as a new entry to the Google sheet.

All this in less than 400 lines of YAML config. View the source in the lowdefy.yaml file in this repository.

Running this example

  • Clone this repository or copy the content of the lowdefy.yaml into a lowdefy.yaml file in your local folder.
  • Create a Google sheet and share the sheet with a GService API account, see the getting started tutorial or the Google sheets Lowdefy docs for an in depth guide on linking a Google sheet.
  • Create .env file and set both the LOWDEFY_SECRET_SHEETS_CLIENT_EMAIL and LOWDEFY_SECRET_SHEETS_PRIVATE_KEY environment variables. (Make sure to never commit your secrets to your code repository.)
  • In the command console, navigate to your project folder and run the Lowdefy CLI: npx lowdefy@latest dev.

Deploying this example

This simplest solution is to deploy this example to Netlify. See the Netlify Deployment instructions for more detail on how to deploy a Lowdefy app to Netlify.

More Lowdefy resources

Licence

MIT

lowdefy-example-survey's People

Contributors

gervwyk avatar samtolmay 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.