g0v/OneButton

Name: OneButton

Owner: g0v

Description: OneButton is a one-click solution for ipa to finish all hackathon duties at once.

Created: 2016-06-12 03:32:02.0

Updated: 2018-04-14 09:11:09.0

Pushed: 2018-04-14 09:11:07.0

Homepage:

Size: 84

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

OneButton

OneButton is a one-click solution for ipa to finish all hackathon duties at once. Some features are mentioned in hackpad.

Prerequisite

Your config.js may look like this:

le.exports = {
TIX: {
login: '',
password: '',
organization: '',
template: ''

CKPAD: {
site: 'g0v.hackpad.tw',
client_id: '',
secret: '',
template: '2ucl5ftrzot'

PI: {
"secret_path": "./client_secret.json",
"token_path": "./.gapi-token.json"

TLY:{
"access_token": ""

PEFORM:{
"api_key": "825108dfb1a50204cef6ffffad8affff",
"webhook_submit_url": "http://exampel.com/api/typeform"


Google OAuth

In order to use google drive api, please follow the guide from Google Drive APIs to turn on google drive api (OAuth 2.0 client ID, application type: other) and generate a client secret. Once a secret is downloaded, you need to update the path of your GAPI secret and where a token is to stored in config.js. After that, you have generate a token using:

de js/gapi-gen-token.js
Templates
Hackpad

You can find yours in the config.js by combining the site field and the default field in the HACKPAD section.

Google Spreadsheets

They are hard-coded in /js/spreadsheet.js. Someone should move the file id and the parent id to config.js.

Ethercalc

The Ethercalc template is located in /tmpl/ethercalc.sc. It's in “SocialCalc sheet save” format.

Typeform

The Typeform template is located in /tmpl/typeform.js.

Run
See the GUI in development

Run npm start and visit http://localhost:3000/.

Run whole function

Run node js/input.js to create event in CUI.

Run part of function

You can fork and create event manually now:

To create an event spreadsheet manually:

To create an event hackpad manually:

To create an event hackfoldr manually:

To create an event typeform manually:

You can customize tmpl/typeform.js to add more professions and achievements.

Contributors

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.