Queue Automator for BYU HBLL Makerspace
http://35.153.196.169 https://queue.hbllmakerspace.click/
Local Machine
- node.js
git clonereponpm install- AWS instance key (you should be able to find the file in the login info doc)
- Create
.envfile in project directory - In the
.envfile there should be these keys:
BOX_CLIENT_ID=
BOX_CLIENT_SECRET=
GAPI_CLIENT_ID=
GAPI_CLIENT_SECRET=
- Fill the GAPI keys
- Go to Google Cloud console with the Makerspace gmail
- Go to the
Queue AutomatorProject'sAPI & Servicespage and navigate toCredentials - Under
OAuth 2.0 Client IDs, get the client ID and client secret from the existing ID with the type "Web application" - Paste them in the
.envfile accordingly
- Fill Box Api keys (Assuming the person in charge of this project left)
- Go to Box Developer console using an account that has access to the Makerspace folders in Box (e.g. someone who works in the Makerspace).
- Create a Platform App
- Choose Custom App
- Fill in info and select User Authentication (OAuth 2.0)
- In the Configuration page for the app, under OAuth 2.0 Redirect URIs, add
http://localhost:3000/boxandhttps://queue.hbllmakerspace.click/box - In the same page, under Application Scopes, check
Write all files and folders stored in Box - In the same page, under CORS Domains, add
http://localhost:3000/, https://queue.hbllmakerspace.click/ - Now in the same page, under OAuth 2.0 Credentials, copy the Client ID and Client Secret
- Paste them in the
.envfile accordingly
- Run
./deployService.sh -k [~/AWSInstanceKey.pem] -h [yourdomain.com] -s [appname]ex../deployService.sh -k ~/.ssh/AWSQueueAutomator.pem -h 35.153.196.169 -s queue-automator
- Go to the Queue Automator Panel
- Click on Box Login with an account with access to the Makerspace folders in Box
- Click on Google Login with the Makerspace Google account, ignore the not verified warning and click Advanced to proceed
Test if it's working by submitting an item through the google forms
- In
sheets-stuff.js, modify the functionconvertToCells, you should see an if statement with arrays. Find the correct queue that changed and modify that array, each element in the array represents a cell for a row and modify accordingly. - Run
./deployService.sh -k [~/AWSInstanceKey.pem] -h [yourdomain.com] -s [appname]ex../deployService.sh -k ~/.ssh/AWSQueueAutomator.pem -h 35.153.196.169 -s queue-automator - Go to the Queue Automator Panel
- Click on Box Login with an account with access to the Makerspace folders in Box
- Click on Google Login with the Makerspace Google account
Test if it's working by submitting an item through the google forms
{
"First Name": "yooyoyoo",
"Last Name": "susususuusp",
"Email": "yo@sup.das",
"Service": "3D Print",
"Files": [
"1mqIUCYhmr1RkdndzKpFx1HhNLmPCjEsV"
],
"Academic": "Yes",
"Type": "FDM",
"Specific Requests": "yoyooyoyosuususupp"
}
curl -H "Content-Type: application/json" -X POST -d '{ "First Name": "yooyoyoo", "Last Name": "susususuusp", "Email": "yo@sup.das", "Service": "3D Print", "Files": [ "1lGXReSVCs6jvTclGKeJpb1qNZBMXxA1H" ], "Academic": "Yes", "Type": "FDM", "Specific Requests": "yoyooyoyosuususupp" }' http://localhost:3000/data
