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 mongoose = require('mongoose'); | |
| const user = require('./user'); | |
| const test = () => { | |
| const user_model = new user.user_model(); | |
| user_model._id = new mongoose.Types.ObjectId(); |
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
| { | |
| "mobile": { | |
| "country_code": "91", | |
| "number": "0000000000" | |
| }, | |
| "roaming_mobile": { | |
| "country_code": "44", | |
| "number": "1111111111" | |
| }, | |
| "_id": "5addc20ef5566233587c252c", |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "VisualEditor0", | |
| "Effect": "Allow", | |
| "Action": "lambda:UpdateFunctionCode", | |
| "Resource": "*" | |
| } | |
| ] |
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 | |
| FROM python:2.7-alpine | |
| RUN apk update | |
| RUN apk add zip | |
| RUN pip install awscli |
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 | |
| steps: | |
| # build the docker image | |
| - name: gcr.io/cloud-builders/docker | |
| args: | |
| - build | |
| - -t | |
| - gcr.io/$PROJECT_ID/aws-cli |
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 | |
| exports.handler = (event, context, callback) => { | |
| callback(null, 'Hello world! This is version 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 | |
| secrets: | |
| - kmsKeyName: projects/[PROJECT_ID]/locations/global/keyRings/[KEY_RING_NAME]/cryptoKeys/[KEY_NAME] | |
| secretEnv: | |
| AWS_ACCESS_KEY_ID: [BASE_64_ENCRYPTED_AWS_ACCESS_KEY_ID] | |
| AWS_SECRET_ACCESS_KEY: [BASE_64_ENCRYPTED_AWS_SECRET_ACCESS_KEY] | |
| steps: |
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 | |
| exports.handler = (event, context, callback) => { | |
| callback(null, 'Hello world! This is version 2.'); | |
| }; |
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://www.apollographql.com/docs/apollo-server/example.html for more info | |
| const express = require('express'); | |
| const bodyParser = require('body-parser'); | |
| const { graphqlExpress, graphiqlExpress } = require('apollo-server-express'); | |
| const { makeExecutableSchema } = require('graphql-tools'); | |
| // Some fake data |
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-graphql-server-google-app-engine", | |
| "version": "1.0.0", | |
| "description": "Apollo GraphQL Server on Google App Engine in under 5 minutes!", | |
| "main": "index.js", | |
| "scripts": { | |
| "start": "node index.js", | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "Raj Chaudhary", |