This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ask deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ask init -p ASK_CLI_FULL_ACCESS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[AWS_CLI_FULL_ACCESS] | |
aws_access_key_id=<YOUR_ACCESS_KEY_ID> | |
aws_secret_access_key=<YOUR_SECRET_ACCESS_KEY> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:CreateRole", | |
"iam:GetRole", | |
"iam:AttachRolePolicy", | |
"iam:PassRole" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g ask-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Clone the repository | |
git clone https://www.github.com/ReaganMcF1059/alexa-chore-tracker-starter | |
#Navigate and Install Dependencies | |
cd alexa-chore-tracker-starter && npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
BUCKET_SLUG: 'alexa-chore-tracker', | |
API_READ_ACCESS_KEY: 'tB6eEWLiFe32nYSMcPNGL9jGyLz35VFQ8vgIInAhgQnrA689BW', | |
API_WRITE_ACCESS_KEY: 'LrybyFXvKgE0ybx4YrnU6UsgR9BTRxCbe3Nc8fzsL0BB7QXbge' | |
}; | |
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Cosmic = require('cosmicjs')(); | |
const config = require('./config'); | |
const choreBucket = Cosmic.bucket({ | |
slug: config.BUCKET_SLUG, | |
read: config.API_READ_ACCESS_KEY, | |
write: config.API_WRITE_ACCESS_KEY | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Handler for the RemoveChoreIntent | |
*/ | |
const RemoveChoreIntentHandler = { | |
canHandle(handlerInput) { | |
const { request } = handlerInput.requestEnvelope; | |
return ( | |
request.type === Requests.INTENT_REQUEST && | |
request.intent.name === Intents.REMOVE_CHORE_INTENT | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove a chore from the bucket | |
*/ | |
const removeChore = async function(chore) { | |
const params = { | |
slug: chore | |
.split(' ') | |
.join('-') | |
.toLowerCase() | |
}; |
OlderNewer