Giter Site home page Giter Site logo

epoch-register's Introduction

Register

This is the registration form that was used for Epoch!

Setup

  1. Clone the repository and enter it
git clone https://github.com/hackclub/epoch-register.git
cd epoch-register
  1. Install packages
yarn

or

npm install
  1. Change questions to your liking Locate lib/manifest.json and edit/add/remove questions to your liking. For more information about manifest.json, click here

  2. Add environment variables and customize Add a .env file with your AirTable API key. How do I get my API key? Locate lib/airtable.js and change the registrationsAirtable baseID to your Airtable base ID, which is found in your Airtable URL and usually starts with app.

  3. Add necessary fields to Airtable Create a new table called Registrations.
    Add fields/columns with names that match up with the key value for each question in manifest.json. Make sure the column type matches up with question type in manifest.json

  4. Run

yarn dev

or

npm run dev

Manifest

Manifest is composed of an array called questions with each element inside the array representing a section of the form.
header string is the header that is displayed at the top of the section.
items Array<Question> is an array that contains the questions.

Questions

key string REQUIRED must match the name of an Airtable column in Registrations
image label string is what is shown to the user
sublabel string is a secondary label/description of the field
type string REQUIRED determines what type of input field the user will see.
string input
paragraph textarea
checkbox checkbox
select select
inputType string specifies validation with type=VALUE
email email validation
placeholder string is a placeholder
options Array<string> is used when select is specified as a input type
optional boolean determines if the input field is optional
check function(data)
data is an object that contains all the other question values. Ex. data["Travel Stipends"] pulls the value of the question with "Travel Stipends" as the key.

epoch-register's People

Contributors

sampoder avatar takumibc 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.