This file contains hidden or 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
{ | |
"name": "apollo-server-3-express-gae", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "node index.js" | |
}, | |
"keywords": [], | |
"author": "Raj Chaudhary", |
This file contains hidden or 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
// om namah shivay | |
transformOneToMany(keys, rows, column) { | |
const map = {}; | |
for (let i = 0; i < keys.length; i++) { | |
map[keys[i]] = []; | |
} | |
for (let i = 0; i < rows.length; i++) { |
This file contains hidden or 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
// om namah shivay | |
const debug = require('@google-cloud/debug-agent').start({ allowExpressions: true }); | |
let debugInitialized; | |
let functionCompleted; | |
let responseJSON; | |
const main = (req, res) => { | |
This file contains hidden or 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
// om namah shivay | |
// only imports the AWS DynamoDB service client | |
const dynamodb = require('aws-sdk/clients/dynamodb'); | |
const config = { | |
region: 'us-east-1', | |
endpoint: 'https://dynamodb.us-east-1.amazonaws.com' | |
}; |
This file contains hidden or 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
// om namah shivay | |
// imports the entire AWS SDK | |
const aws = require('aws-sdk'); | |
aws.config.update({ | |
region: 'us-east-1', | |
endpoint: 'https://dynamodb.us-east-1.amazonaws.com' | |
}); |
This file contains hidden or 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
# om namah shivay | |
# See https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml | |
# and https://cloud.google.com/appengine/docs/flexible/nodejs/reference/app-yaml for more info | |
runtime: nodejs | |
env: flex | |
service: default | |
# The settings below are to reduce costs during testing and not appropriate for production use. |
This file contains hidden or 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
{ | |
"name": "node", | |
"version": "1.0.0", | |
"description": "", | |
"main": "hello.js", | |
"scripts": { | |
"start": "node hello.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Raj Chaudhary", |
This file contains hidden or 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
// om namah shivay | |
const express = require('express'); | |
const app = express(); | |
app.use('/', (req, res) => { | |
res.json({ 'message': 'Hello from Node!' }); | |
}); |
This file contains hidden or 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
Flask==1.0.2 | |
gunicorn==19.8.1 |
This file contains hidden or 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
# om namah shivay | |
# See https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml | |
# and https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml for more info | |
runtime: python | |
runtime_config: | |
python_version: 3 | |
env: flex | |
service: python |